/* =========================================================
   LYMESEARCH EDUCATIONAL DESIGN SYSTEM — 2026-10-26
   Loaded AFTER article.css and hub.css; isolated to education.
   Reference: Lyme Disease 101. No global header/home changes.
========================================================= */

.ls-education-hub,
.lyme-basics-hub,
.lyme-symptoms-hub,
.ls-education-topic,
.lyme-pillar,
.ls-pillar {
    --ls-ink: #374151;
    --ls-teal: #134e4a;
    --ls-link: #0f766e;
    --ls-muted: #6b7280;
    --ls-reading-width: 760px;
    --ls-panel: #f9fafb;
    --ls-border: #e5e7eb;
    font-family: "Inter", Arial, sans-serif;
    color: var(--ls-ink);
}

/* The three previously card-first hubs now have the same
   compact disclaimer and TOC treatment as Lyme Disease 101. */
.ls-education-hub .ls-education-disclaimer-section {
    padding: 24px 0 16px;
}
.ls-education-hub .lyme-hub-disclaimer,
.ls-education-topic .ls-topic-medical-note {
    width: 100%;
    max-width: var(--ls-reading-width);
    margin: 0 auto;
    padding: 16px 20px;
    background: var(--ls-panel);
    border: 1px solid var(--ls-border);
    border-left: 3px solid var(--ls-link);
    border-radius: 8px;
    color: var(--ls-muted);
    font-size: 13px;
    line-height: 1.65;
}
.ls-education-hub .lyme-hub-disclaimer p,
.ls-education-topic .ls-topic-medical-note p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.ls-education-hub .lyme-hub-disclaimer strong,
.ls-education-topic .ls-topic-medical-note strong {
    color: var(--ls-ink);
    font-weight: 700;
}
.ls-education-hub .ls-education-navigation {
    padding: 8px 0 16px;
}
.ls-education-hub .ls-education-toc {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 20px 24px;
    background: var(--ls-panel);
    border: 1px solid var(--ls-border);
    border-radius: 8px;
}
.ls-education-hub .ls-education-toc summary {
    cursor: pointer;
    color: var(--ls-teal);
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}
.ls-education-hub .ls-education-toc ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.ls-education-hub .ls-education-toc li {
    list-style: none;
    margin: 0;
    padding: 3px 0;
    font-size: 14px;
    line-height: 20px;
}
.ls-education-hub .ls-education-toc li::before {
    display: none;
    content: none;
}
.ls-education-hub .ls-education-toc a {
    color: var(--ls-link);
    font-weight: 500;
    text-decoration: none !important;
}
.ls-education-hub .ls-education-toc a:hover {
    color: #115e59;
}
.ls-education-hub #explore-topics,
.ls-education-hub #featured-guide,
.ls-education-hub #latest-articles {
    scroll-margin-top: 110px;
}

/* Topic pages: same hero typography and 760px article column.
   Existing WordPress editor content is preserved unchanged. */
body .ls-education-topic .ls-topic-header {
    padding: 56px 0 44px;
    text-align: center;
}
body .ls-education-topic .ls-topic-header h1 {
    max-width: var(--ls-reading-width);
    margin-inline: auto;
    color: var(--ls-teal);
    font-family: "Sora", "Inter", Arial, sans-serif;
    font-size: 42px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 700;
}
body .ls-education-topic .ls-topic-description {
    max-width: 680px;
    margin: 18px auto 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.7;
}
body .ls-education-topic .ls-topic-medical-note {
    margin-top: 24px;
    margin-bottom: 8px;
}
body .ls-education-topic .ls-topic-overview {
    width: 100%;
    max-width: var(--ls-reading-width);
    margin-inline: auto;
    padding: 28px 0;
}
body .ls-education-topic .ls-topic-content {
    max-width: var(--ls-reading-width);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--ls-ink);
}
body .ls-education-topic .ls-topic-content p,
body .ls-education-topic .ls-topic-content li {
    color: var(--ls-ink);
    font-size: 16px;
    line-height: 1.75;
}
body .ls-education-topic .ls-topic-content p {
    margin: 0 0 18px;
}
body .ls-education-topic .ls-topic-content h2 {
    margin: 36px 0 16px;
    font-family: "Sora", "Inter", Arial, sans-serif;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ls-teal);
}
body .ls-education-topic .ls-topic-content h3 {
    margin: 28px 0 12px;
    font-family: "Sora", "Inter", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: #111827;
}
body .ls-education-topic .ls-topic-content > :first-child {
    margin-top: 0;
}

/* Articles: match the educational heading/paragraph rhythm,
   preserving existing article-specific boxes and metadata. */
.lyme-pillar,
.ls-pillar {
    font-size: 16px;
    line-height: 1.75;
}
.lyme-pillar h2,
.ls-pillar h2 {
    color: #134e4a;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
}
.lyme-pillar p,
.ls-pillar p {
    line-height: 1.75;
}

/* Educational links never show underlines; focus remains visible. */
.ls-education-hub a,
.ls-education-topic a,
.lyme-basics-hub a,
.lyme-symptoms-hub a,
.lyme-pillar a,
.ls-pillar a {
    text-decoration: none !important;
}
.ls-education-hub a:focus-visible,
.ls-education-topic a:focus-visible,
.lyme-basics-hub a:focus-visible,
.lyme-symptoms-hub a:focus-visible,
.lyme-pillar a:focus-visible,
.ls-pillar a:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .ls-education-hub .ls-education-toc { padding: 18px 20px; }
    .ls-education-hub .lyme-hub-disclaimer,
    .ls-education-topic .ls-topic-medical-note { padding: 14px 16px; }
    body .ls-education-topic .ls-topic-header { padding: 40px 0 32px; }
    body .ls-education-topic .ls-topic-header h1 { font-size: 34px; }
    body .ls-education-topic .ls-topic-description { font-size: 16px; }
    body .ls-education-topic .ls-topic-content h2,
    .lyme-pillar h2,
    .ls-pillar h2 { font-size: 23px; }
    body .ls-education-topic .ls-topic-content p,
    body .ls-education-topic .ls-topic-content li { font-size: 15px; }
}

/* =========================================================
   MEDICAL REFERENCES — SHARED ACROSS EDUCATIONAL HUBS
   Mirrors the Lyme Disease 101 reference panel.
========================================================= */
.ls-medical-references {
    padding: 40px 0 48px;
    background: #ffffff;
    scroll-margin-top: 110px;
}
.ls-medical-references-inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
.ls-medical-references-header { margin-bottom: 28px; }
.ls-medical-references-label {
    display: block;
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.ls-medical-references-header h2 {
    margin: 0 0 10px;
    color: #134e4a;
    font-family: "Sora", "Inter", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
}
.ls-medical-references-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
}
.ls-medical-reference-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ls-reference;
}
.ls-medical-reference-list li {
    position: relative;
    margin: 0;
    padding: 18px 0 18px 42px;
    border-bottom: 1px solid #e5e7eb;
    counter-increment: ls-reference;
    list-style: none;
}
.ls-medical-reference-list li:first-child { border-top: 1px solid #e5e7eb; }
.ls-medical-reference-list li::before {
    content: counter(ls-reference) ".";
    position: absolute;
    top: 18px;
    left: 0;
    color: #0f766e;
    font-size: 15px;
    font-weight: 700;
}
.ls-medical-reference-list .lyme-reference-source {
    display: block;
    margin-bottom: 5px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}
.ls-medical-reference-list a,
.ls-medical-reference-list a:hover,
.ls-medical-reference-list a:focus {
    display: inline-block;
    color: #0f766e;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}
.ls-medical-reference-list a:hover { color: #115e59; }
.ls-medical-references-note {
    margin: 20px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}
/* Topic templates have their own outer width; reference panel stays at 760px. */
.ls-education-topic .ls-medical-references .lyme-hub-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
@media (max-width: 767px) {
    .ls-medical-references { padding: 32px 0 40px; }
    .ls-medical-references-header h2 { font-size: 23px; }
    .ls-education-topic .ls-medical-references { padding-left: 16px; padding-right: 16px; }
}
