/* 
 * Single Post Stylesheet
 * Optimized for readability and accessibility with high specificity selectors
 */

/* --------------------------
 * Typography Variables
 * -------------------------- */
:root {
  --color-green: #52924e;
  --color-white: #FFF;
  --color-light-gray: #F2F5F3;
  --color-text: #101213;
  --color-text-secondary: #4d4d4d;
  --color-link-hover: #3e6e3a;
}

/* --------------------------
 * Main Content Container - Super specific selectors
 * -------------------------- */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--color-text) !important;
  margin: 0 auto !important;
}

/* --------------------------
 * Typography Elements - Using very specific selectors
 * -------------------------- */

/* Headings - with proper margins and high specificity */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h1,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h2,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h3,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h4,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h5,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h6 {
  margin-top: 1.75em !important;
  margin-bottom: 0.75em !important;
  line-height: 1.3 !important;
  color: var(--color-text) !important;
  font-weight: 700 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h1 {
  font-size: 2.5rem !important;
  margin-top: 0 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h2 {
  font-size: 2rem !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h3 {
  font-size: 1.65rem !important;
  padding-left: 40px;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h4 {
  font-size: 1.4rem !important;
  padding-left: 80px;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h5 {
  font-size: 1.2rem !important;
  padding-left: 160px;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h6 {
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding-left: 200px;
}

/* Paragraphs - with proper margins */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content p {
  margin-bottom: 1.5em !important;
  margin-top: 0 !important;
  font-size: 16px !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content p:last-child {
  margin-bottom: 0 !important;
}

/* Strong and Emphasis */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content strong {
  font-weight: 700 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content em {
  font-style: italic !important;
}

/* Links */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content a:not(.btn):not(.btn-gated) {
  color: var(--color-green) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 0.1em !important;
  text-underline-offset: 0.15em !important;
  transition: all 0.2s ease !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content a:hover,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content a:focus {
  color: var(--color-link-hover) !important;
  text-decoration-thickness: 0.15em !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content a:focus {
  outline: 2px solid var(--color-green) !important;
  outline-offset: 2px !important;
  text-decoration: none !important;
}

/* Lists */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content ul,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content ol {
  margin: 0 0 1.5em 2em !important;
  padding: 0 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content ul {
  list-style: disc !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content ol {
  list-style: decimal !important;
}

/* List items - ensure proper size */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content li {
  font-size: 18px !important; /* Match paragraph size */
  margin-bottom: 0.5em !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content li > ul,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content li > ol {
  margin-top: 0.5em !important;
  margin-bottom: 0 !important;
}

/* Blockquotes */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content blockquote {
  margin: 2em 0 !important;
  padding: 0.5em 0 0.5em 1.5em !important;
  border-left: 4px solid var(--color-green) !important;
  background-color: var(--color-light-gray) !important;
  font-style: italic !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content blockquote p {
  font-size: 1.1em !important;
  color: var(--color-text-secondary) !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content blockquote cite {
  display: block !important;
  margin-top: 1em !important;
  font-size: 0.9em !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

/* Code blocks */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content pre,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content code {
  font-size: 0.9em !important;
  background-color: var(--color-light-gray) !important;
  border-radius: 3px !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content pre {
  padding: 1.25em !important;
  margin: 1.5em 0 !important;
  overflow-x: auto !important;
  line-height: 1.5 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content code {
  padding: 0.2em 0.4em !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content pre code {
  padding: 0 !important;
  background-color: transparent !important;
}

/* Tables */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content table {
  width: 100% !important;
  margin: 1.5em 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1px solid #e1e1e1 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content th,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content td {
  padding: 0.75em !important;
  border: 1px solid #e1e1e1 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content th {
  font-weight: 600 !important;
  text-align: left !important;
  background-color: var(--color-light-gray) !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content tr:nth-child(even) {
  background-color: #f9f9f9 !important;
}

/* Horizontal Rule */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content hr {
  height: 2px !important;
  margin: 2.5em 0 !important;
  background-color: var(--color-light-gray) !important;
  border: 0 !important;
}

/* Images */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 1.5em auto !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content figure {
  margin: 2em 0 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content figcaption {
  font-size: 0.9em !important;
  text-align: center !important;
  color: var(--color-text-secondary) !important;
  margin-top: 0.5em !important;
}

/* Definition Lists */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content dl {
  margin: 1.5em 0 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content dt {
  font-weight: 700 !important;
  margin-bottom: 0.5em !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content dd {
  margin: 0 0 1em 1.5em !important;
}

/* Address */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content address {
  font-style: italic !important;
  margin-bottom: 1.5em !important;
}

/* --------------------------
 * Media Queries
 * -------------------------- */
@media (max-width: 768px) {
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content {
    font-size: 16px !important;
  }

  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h1 {
    font-size: 2rem !important;
  }
  
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h2 {
    font-size: 1.75rem !important;
  }
  
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h3 {
    font-size: 1.5rem !important;
  }

  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content blockquote {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content li {
    font-size: 16px !important; /* Match paragraph mobile size */
  }
}

/* --------------------------
 * Print Styles
 * -------------------------- */
@media print {
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content {
    font-size: 12pt !important;
    line-height: 1.5 !important;
    color: #000 !important;
  }

  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content a:not(.btn):not(.btn-gated) {
    color: #000 !important;
    text-decoration: underline !important;
  }

  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h1,
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h2,
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h3,
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h4,
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h5,
  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content h6 {
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content img {
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
  }

  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content blockquote {
    page-break-inside: avoid !important;
  }

  .single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content table {
    page-break-inside: avoid !important;
  }
}

/* --------------------------
 * Accessibility Enhancements
 * -------------------------- */
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content .screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  word-wrap: normal !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content .screen-reader-text:focus {
  background-color: var(--color-light-gray) !important;
  clip: auto !important;
  clip-path: none !important;
  color: var(--color-text) !important;
  display: block !important;
  font-size: 1em !important;
  height: auto !important;
  left: 5px !important;
  line-height: normal !important;
  padding: 15px 23px 14px !important;
  text-decoration: none !important;
  top: 5px !important;
  width: auto !important;
  z-index: 100000 !important;
}

.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content [data-section="0"] .blogue,
.single-post .box-wrapper .main-wrapper .main-container .page-wrapper article .post-content [data-section="0"] .col-custom-width {
  max-width: 1200px !important;
}
