/* ===== TCE: References Styling Override ===== */

/* Apply italics to reference lists and number prefixes correctly */
ol.references,
ol.references-list,
[data-type="references"] ol {
  counter-reset: ref;
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  list-style: none;
}

ol.references li,
ol.references-list li,
[data-type="references"] ol li {
  font-style: italic;
  position: relative;
  margin: .5rem 0;
  padding-left: 1.75rem;
}

/* Prefix numbers */
ol.references li::before,
ol.references-list li::before,
[data-type="references"] ol li::before {
  counter-increment: ref;
  content: counter(ref) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
  font-weight: 600;
}

/* Fallback if paragraphs are used instead of lists */
.references-section p {
  font-style: italic !important;
}
/* ===== TCE Fix: use native numbering, clean spacing, keep numbers non-italic ===== */
ol.references,
ol.references-list,
[data-type="references"] ol {
  list-style: decimal !important;            /* show browser numbers */
  margin: 0 0 0.5rem 1.5rem !important;      /* tighter spacing */
  padding: 0 !important;
  counter-reset: none !important;             /* kill custom counters */
}

/* Stop the custom ::before numbers if any were added earlier */
ol.references li::before,
ol.references-list li::before,
[data-type="references"] ol li::before {
  content: none !important;
}

/* Style the native list marker (the number) */
ol.references li::marker,
ol.references-list li::marker,
[data-type="references"] ol li::marker {
  font-style: normal !important;              /* numbers NOT italic */
  font-weight: 600 !important;                /* numbers semi-bold */
}

/* Keep the reference text italic, but with tighter gaps */
ol.references li,
ol.references-list li,
[data-type="references"] ol li {
  font-style: italic !important;
  margin: 0.25rem 0 !important;               /* reduce line gap */
  padding-left: 0 !important;                 /* no fake indent needed */
}

/* If your CMS wraps each item with <p>, remove extra paragraph spacing */
ol.references li p,
ol.references-list li p,
[data-type="references"] ol li p {
  margin: 0 !important;
}
/* ===== TCE Micro-Spacing Fix ===== */

/* Remove all vertical gaps between reference items */
ol.references,
ol.references-list,
[data-type="references"] ol {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important; /* tighter text line height */
}

/* Make each list item compact */
ol.references li,
ol.references-list li,
[data-type="references"] ol li {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* If editor wrapped each citation in <p>, kill that margin too */
ol.references li p,
ol.references-list li p,
[data-type="references"] ol li p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* ===== TCE Home: Featured News spacing fix ===== */
.tce-featured-news-section {
  padding: 20px 0 0 0 !important;  /* was 60px 0 */
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  background-color: #ffffff !important;
}
/* ===== TCE Home: Featured Category text fix ===== */
.featured-category {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #e30613 !important;
  text-transform: uppercase !important;
  letter-spacing: normal !important; /* remove extra spacing between letters */
}
/* ===== TCE: Featured News Responsive Styles — High Specificity Fix ===== */
@media (max-width: 991px) {
  body .tce-featured-news-section {
    padding: 40px 0 !important;
  }
  body .featured-title {
    font-size: 1.5rem !important;
  }
  body .featured-excerpt {
    font-size: 0.95rem !important;
  }
  body .featured-content {
    padding: 2rem 1rem !important;
  }
}

@media (max-width: 767px) {
  body .tce-featured-news-section {
    padding: 30px 0 !important;
  }
  body .section-title {
    font-size: 1.75rem !important;
  }
  body .section-description {
    font-size: 1rem !important;
  }
  body .featured-title {
    font-size: 1.3rem !important;
  }
  body .featured-excerpt {
    font-size: 0.9rem !important;
  }
  body .featured-content {
    padding: 1.5rem 1rem !important;
    margin-top: 1rem !important;
  }
  body .featured-image-container {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 575px) {
  body .tce-featured-news-section {
    padding: 20px 0 !important;
  }
  body .section-title {
    font-size: 1.5rem !important;
  }
  body .section-description {
    font-size: 0.9rem !important;
  }
  body .featured-title {
    font-size: 1.2rem !important;
  }
  body .featured-excerpt {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  body .featured-category {
    font-size: 0.8rem !important;
  }
  body .featured-date {
    font-size: 0.8rem !important;
  }
  body .featured-content {
    padding: 1rem !important;
  }
}
