/* =========================================================
   LYMESEARCH — ARTICLE / PILLAR STYLESHEET
   CSSPicker Design
   Desktop, Tablet and Mobile
========================================================= */

/* =========================================================
   1. GENERATEPRESS RESET
========================================================= */

body:has(.lyme-pillar) .site-content,
body:has(.ls-pillar) .site-content {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
}

body:has(.lyme-pillar) .content-area,
body:has(.ls-pillar) .content-area {
    width: 100%;
    float: none;
}

body:has(.lyme-pillar) .site-main,
body:has(.ls-pillar) .site-main {
    margin: 0;
}

body:has(.lyme-pillar) .inside-article,
body:has(.ls-pillar) .inside-article {
    padding: 0;
    background: #ffffff;
}

body:has(.lyme-pillar) .entry-content,
body:has(.ls-pillar) .entry-content {
    margin: 0;
}

body:has(.lyme-pillar) .entry-header,
body:has(.ls-pillar) .entry-header {
    display: none;
}

/* =========================================================
   2. ARTICLE CONTAINERS
========================================================= */

.lyme-pillar,
.ls-pillar {
    box-sizing: border-box;
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 48px 16px 72px;
    color: #374151;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.lyme-pillar *,
.lyme-pillar *::before,
.lyme-pillar *::after,
.ls-pillar *,
.ls-pillar *::before,
.ls-pillar *::after {
    box-sizing: border-box;
}

/* =========================================================
   3. READING COLUMN
========================================================= */

.lyme-pillar > .lyme-article-header,
.lyme-pillar > .lyme-toc,
.lyme-pillar > section,
.lyme-pillar > aside {
    width: 100%;
    max-width: 760px;
}

.ls-pillar .ls-layout {
    display: block;
    width: 100%;
}

.ls-pillar .ls-reading {
    width: 100%;
    max-width: 760px;
    min-width: 0;
}

/* =========================================================
   4. BREADCRUMBS
========================================================= */

.lyme-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 20px;
}

.lyme-breadcrumbs a {
    color: #0f766e !important;
    font-weight: 500;
    text-decoration: none !important;
}

.lyme-breadcrumbs a:hover {
    color: #115e59 !important;
}

.lyme-breadcrumb-separator {
    color: #9ca3af;
}

.lyme-breadcrumbs [aria-current="page"] {
    color: #6b7280;
}

/* =========================================================
   5. ARTICLE HEADER
========================================================= */

.lyme-article-header,
.ls-pillar .ls-article-header {
    margin: 0 0 32px;
}

.lyme-article-category {
    margin: 0 0 8px;
    color: #0f766e;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
}

.lyme-article-header h1,
.ls-pillar h1 {
    margin: 0 0 16px;
    color: #134e4a;
    font-family: "Sora", "Inter", Arial, sans-serif;
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lyme-article-deck,
.ls-pillar .ls-dek {
    max-width: 720px;
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
}

.lyme-article-meta,
.ls-pillar .ls-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: normal;
}

.lyme-medical-review {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 20px;
}

/* =========================================================
   6. ORIGINAL TABLE OF CONTENTS
========================================================= */

.lyme-pillar > .lyme-toc {
    box-sizing: border-box;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 20px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.lyme-toc h2 {
    margin: 0 0 12px;
    color: #134e4a;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.lyme-toc ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lyme-toc li {
    margin: 0;
    padding: 3px 0;
    font-size: 14px;
    line-height: 20px;
}

.lyme-toc li::before {
    display: none !important;
    content: none !important;
}

.lyme-toc a {
    color: #0f766e !important;
    font-weight: 500;
    text-decoration: none !important;
}

.lyme-toc a:hover {
    color: #115e59 !important;
    text-decoration: none !important;
}

/* =========================================================
   7. UPDATED TABLE OF CONTENTS
========================================================= */

.ls-pillar .ls-sidebar {
    width: 100%;
    max-width: 760px;
    position: static;
    padding: 0;
    margin: 0 0 20px;
}

.ls-pillar .ls-toc {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 20px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ls-pillar .ls-toc summary {
    cursor: pointer;
    color: #134e4a;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.ls-pillar .ls-toc ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ls-pillar .ls-toc li {
    margin: 0;
    padding: 3px 0;
    list-style: none;
    font-size: 14px;
    line-height: 20px;
}

.ls-pillar .ls-toc li::before {
    content: none !important;
}

.ls-pillar .ls-toc a {
    color: #0f766e;
    font-weight: 500;
    text-decoration: none;
}

.ls-pillar .ls-toc a:hover {
    color: #115e59;
    text-decoration: none;
}

/* =========================================================
   8. ARTICLE BODY
========================================================= */

.lyme-pillar section {
    margin: 0 0 48px;
}

.ls-pillar .ls-section {
    margin: 0 0 32px;
    padding: 0;
    border: 0;
}

.lyme-pillar section[id],
.ls-pillar [id] {
    scroll-margin-top: 96px;
}

.lyme-pillar p,
.ls-pillar p {
    margin: 0 0 20px;
}

.lyme-pillar h2,
.ls-pillar h2 {
    margin: 0 0 16px;
    color: #134e4a;
    font-family: "Sora", "Inter", Arial, sans-serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: normal;
}

.lyme-pillar h3,
.ls-pillar h3 {
    margin: 28px 0 12px;
    color: #111827;
    font-family: "Sora", "Inter", Arial, sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: normal;
}

.lyme-pillar a,
.ls-pillar a {
    color: #0f766e;
}

.lyme-pillar a:hover,
.ls-pillar a:hover {
    color: #115e59;
}

/* =========================================================
   9. INTRODUCTION
========================================================= */

.lyme-article-introduction {
    color: #374151;
    font-size: 17px;
    line-height: 28px;
}

/* Consistent spacing inside the introduction */

.ls-pillar .ls-intro {
    width: 100%;
    max-width: 760px;
    margin: 0 0 24px;
    padding: 0;
}

.ls-pillar .ls-intro > p {
    margin: 0 0 16px;
}

.ls-pillar .ls-intro > p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   10. KEY TAKEAWAYS / QUICK ANSWERS
========================================================= */

.key-takeaways {
    box-sizing: border-box;
    margin: 0 0 24px;
    padding: 24px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
}

.key-takeaways h2 {
    margin: 0 0 12px;
    color: #134e4a;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
}

.key-takeaways ul {
    margin: 0;
    padding-left: 20px;
}

.key-takeaways li {
    margin: 6px 0;
    color: #374151;
    font-size: 15px;
    line-height: 24px;
}

/* Updated Quick Answers */

.ls-pillar .ls-takeaways {
    width: 100%;
    max-width: 760px;
    margin: 16px 0 20px;
    padding: 24px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
}

.ls-pillar .ls-takeaways strong {
    display: block;
    margin: 0 0 12px;
    color: #134e4a;
    font-size: 18px;
    line-height: 28px;
}

.ls-pillar .ls-takeaways ul {
    margin: 0;
    padding-left: 20px;
}

.ls-pillar .ls-takeaways li {
    margin: 6px 0;
    font-size: 15px;
    line-height: 24px;
}

/* Remove unnecessary spacing around the two boxes */

.ls-pillar .ls-quick-answers {
    margin-top: 16px;
    margin-bottom: 20px;
}

.ls-pillar .ls-intro > .ls-sidebar {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
}

.ls-pillar .ls-intro > .ls-sidebar .ls-toc {
    width: fit-content;
    max-width: 100%;
    margin: 0;
}

.ls-pillar .ls-intro + .ls-section {
    margin-top: 0;
}

/* =========================================================
   11. EVIDENCE NOTE
========================================================= */

.evidence-note {
    box-sizing: border-box;
    margin: 28px 0 0;
    padding: 20px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #0f766e;
    border-radius: 8px;
}

.evidence-note h3 {
    margin: 0 0 8px;
    color: #134e4a;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.evidence-note p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   12. INLINE LINKS
========================================================= */

.lyme-inline-link {
    color: #0f766e !important;
    font-weight: 600;
    text-decoration: none !important;
}

.lyme-inline-link:hover {
    color: #115e59 !important;
}

/* =========================================================
   13. FAQ
========================================================= */

.lyme-faq-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.lyme-faq-item:first-of-type {
    border-top: 1px solid #e5e7eb;
}

.lyme-faq-item h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 17px;
    line-height: 24px;
    font-weight: 600;
}

.lyme-faq-item p {
    margin: 0;
}

/* =========================================================
   14. BOTTOM LINE
========================================================= */

.lyme-bottom-line {
    box-sizing: border-box;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.lyme-bottom-line h2 {
    margin: 0 0 12px;
}

/* =========================================================
   15. MEDICAL REFERENCES
   Healthline-Inspired Editorial Spacing
========================================================= */

/* Original article template */

.lyme-pillar .lyme-references {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

/* Updated article template */

.ls-pillar .ls-section[aria-labelledby="references"] {
    margin-top: 64px !important;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

/* References heading */

.lyme-references h2,
.ls-pillar .ls-section[aria-labelledby="references"] h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

/* References lists */

.lyme-references ol,
.ls-pillar .ls-section[aria-labelledby="references"] ol {
    margin: 0;
    padding-left: 20px;
    overflow-wrap: anywhere;
}

/* Individual references */

.lyme-references li,
.ls-pillar .ls-section[aria-labelledby="references"] li {
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 22px;
}

/* Mobile spacing */

@media (max-width: 768px) {

    .lyme-pillar .lyme-references,
    .ls-pillar .ls-section[aria-labelledby="references"] {
        margin-top: 48px !important;
        padding-top: 24px;
    }

}

/* =========================================================
   16. DISCLAIMER
   Consistent, content-sized medical disclaimer boxes
========================================================= */

.lyme-article-disclaimer,
.ls-pillar footer {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 20px;
}

/* Preserve space after the original article disclaimer. */
.lyme-article-disclaimer {
    margin-bottom: 48px;
}

/* Article-wide paragraph margins must not enlarge disclaimers. */
.lyme-pillar .lyme-article-disclaimer p,
.ls-pillar .lyme-article-disclaimer p,
.ls-pillar footer p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

/* Maintain readable separation if a disclaimer has several paragraphs. */
.lyme-pillar .lyme-article-disclaimer p + p,
.ls-pillar .lyme-article-disclaimer p + p,
.ls-pillar footer p + p {
    margin-top: 8px;
}

/* =========================================================
   17. RELATED ARTICLES
========================================================= */

.lyme-related-articles {
    margin-bottom: 0 !important;
}

.lyme-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.lyme-related-card {
    box-sizing: border-box;
    display: block;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none !important;
}

.lyme-related-card:hover {
    border-color: #99f6e4;
}

.lyme-related-card span {
    display: block;
    margin-bottom: 6px;
    color: #0f766e;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
}

.lyme-related-card strong {
    display: block;
    color: #111827;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

/* =========================================================
   18. TABLES
========================================================= */

.ls-pillar .ls-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ls-pillar table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.ls-pillar th,
.ls-pillar td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}

.ls-pillar th {
    color: #134e4a;
    background: #f9fafb;
    font-weight: 700;
}

.ls-pillar tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   19. FEATURED IMAGES
========================================================= */

.single-post .ls-article-featured-image {
    width: 100%;
    max-width: 760px;
    margin: 28px auto 36px;
    text-align: center;
}

.single-post .ls-featured-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
    border-radius: 12px;
}

/* =========================================================
   20. SINGLE ARTICLE CLEANUP
========================================================= */

.single-post .entry-meta,
.single-post .entry-footer,
.single-post .post-navigation,
.single-post .nav-links,
.single-post .author-box,
.single-post .author-info {
    display: none !important;
}

.single-post #comments,
.single-post .comments-area,
.single-post .comment-respond {
    display: none !important;
}

.single-post #right-sidebar,
.single-post #left-sidebar,
.single-post .widget-area {
    display: none !important;
}

.single-post .inside-article {
    padding-bottom: 0;
}

.single-post .ls-section footer {
    display: block;
}

.single-post .entry-header,
.single-post .inside-article > .entry-header {
    display: none !important;
}

/* =========================================================
   21. RESPONSIVE — 640PX AND ABOVE
========================================================= */

@media (min-width: 640px) {

    .lyme-pillar,
    .ls-pillar {
        padding-left: 24px;
        padding-right: 24px;
    }

}

/* =========================================================
   22. RESPONSIVE — 1024PX AND ABOVE
========================================================= */

@media (min-width: 1024px) {

    .lyme-pillar,
    .ls-pillar {
        padding-left: 32px;
        padding-right: 32px;
    }

}

/* =========================================================
   23. TABLET — 767PX AND BELOW
========================================================= */

@media (max-width: 767px) {

    .lyme-article-header h1,
    .ls-pillar h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .lyme-related-grid {
        grid-template-columns: 1fr;
    }

    .ls-pillar .ls-sidebar {
        margin-bottom: 18px;
    }

    .ls-pillar .ls-takeaways {
        margin-top: 16px;
        margin-bottom: 18px;
        padding: 24px;
    }

    .ls-pillar .ls-intro {
        margin-bottom: 20px;
    }

}

/* =========================================================
   24. MOBILE — 480PX AND BELOW
========================================================= */

@media (max-width: 480px) {

    .lyme-pillar,
    .ls-pillar {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .lyme-breadcrumbs {
        margin-bottom: 16px;
    }

    .lyme-article-header h1,
    .ls-pillar h1 {
        font-size: 32px;
        line-height: 38px;
    }

    .lyme-article-deck,
    .ls-pillar .ls-dek {
        font-size: 17px;
        line-height: 26px;
    }

    .lyme-pillar h2,
    .ls-pillar h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .lyme-pillar > .lyme-toc,
    .ls-pillar .ls-toc {
        max-width: 100%;
        padding: 18px 20px;
    }

    .key-takeaways,
    .evidence-note,
    .lyme-bottom-line,
    .ls-pillar .ls-takeaways {
        padding: 20px;
    }

    .single-post .ls-article-featured-image {
        margin: 20px auto 28px;
    }

    .single-post .ls-featured-img {
        max-height: 300px;
        border-radius: 8px;
    }

}

/* =========================================================
   25. ARTICLE SPACING — CONSOLIDATED
   Preserves existing Quick Answers and TOC spacing
========================================================= */

/* Reading column */
.ls-pillar .ls-reading,
.lyme-pillar > section,
.lyme-pillar > aside {
    width: 100%;
    max-width: 760px;
}

/* Introduction */
.ls-pillar .ls-intro {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ls-pillar .ls-reading > .ls-intro {
    margin: 0 !important;
    padding: 0 !important;
}

/* Quick Answers and Key Takeaways */
.ls-pillar .ls-takeaways,
.ls-pillar .ls-quick-answers,
.lyme-pillar .key-takeaways {
    width: 100%;
    max-width: 760px;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.ls-pillar .ls-intro > .ls-quick-answers {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 16px 0 !important;
    padding: 24px;
}

.ls-pillar .ls-takeaways > p:last-child,
.ls-pillar .ls-quick-answers > p:last-child,
.lyme-pillar .key-takeaways > p:last-child {
    margin-bottom: 0 !important;
}

/* Table of Contents */
.ls-pillar .ls-sidebar {
    width: 100%;
    max-width: 760px;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.ls-pillar .ls-intro > .ls-sidebar {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.ls-pillar .ls-toc,
.lyme-pillar > .lyme-toc {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.ls-pillar .ls-intro .ls-toc {
    width: fit-content;
    max-width: 100%;
    margin: 0 !important;
}

/* Article sections */
.ls-pillar .ls-section {
    margin-top: 0 !important;
    margin-bottom: 32px !important;
}

.ls-pillar .ls-intro + .ls-section,
.ls-pillar .ls-reading > .ls-intro + .ls-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ls-pillar .ls-intro + .ls-section > h2:first-child {
    margin-top: 0 !important;
}

/* Mobile spacing */
@media (max-width: 768px) {

    .ls-pillar .ls-takeaways,
    .ls-pillar .ls-quick-answers,
    .lyme-pillar .key-takeaways {
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }

    .ls-pillar .ls-intro > .ls-quick-answers {
        margin: 12px 0 !important;
        padding: 20px;
    }

    .ls-pillar .ls-sidebar,
    .ls-pillar .ls-toc,
    .lyme-pillar > .lyme-toc {
        margin-bottom: 16px !important;
    }

    .ls-pillar .ls-intro > .ls-sidebar {
        margin-bottom: 12px !important;
    }

    .ls-pillar .ls-section {
        margin-bottom: 28px !important;
    }
}

/* =========================================================
   26. QUICK ANSWERS — MINIMAL READ MORE LINKS
   CSSPicker Design
========================================================= */

.ls-pillar .ls-quick-answers a[href] {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    width: auto;
    min-height: 0;
    margin-top: 4px;
    padding: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    color: #0f766e;
    font-size: 15px;
    line-height: 24px;
    font-weight: 600;
    text-decoration: none !important;

    transition: color 180ms ease;
}

.ls-pillar .ls-quick-answers a[href]:hover {
    color: #115e59;
    background: transparent;
    text-decoration: none !important;
}

.ls-pillar .ls-quick-answers a[href]:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Heading-like titles */
.lyme-related-card strong,
.ls-pillar .ls-takeaways strong {
    font-family: "Sora", "Inter", Arial, sans-serif;
}

/* Keep table-of-contents controls compact */
.lyme-pillar .lyme-toc h2,
.ls-pillar .ls-toc summary {
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: normal;
}

/* Prevent general article H2 rules from enlarging takeaway titles */
.lyme-pillar .key-takeaways h2,
.ls-pillar .key-takeaways h2 {
    font-size: 18px;
    line-height: 28px;
}

/* =========================================================
   END OF LYMESEARCH ARTICLE STYLESHEET
========================================================= */