/* The education library shares the clinic shell; all content styles are scoped. */
.education-wrap{width:min(1080px,calc(100% - 80px));margin-inline:auto;padding:28px 0 72px}
.education-breadcrumb{font-size:.8125rem;color:var(--muted);margin-bottom:30px}
.education-breadcrumb ol{display:flex;flex-wrap:wrap;gap:5px 10px;list-style:none;padding:0;margin:0}
.education-breadcrumb li+li::before{content:"/";margin-right:10px;color:var(--gold)}
.education-breadcrumb a{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}
.education-intro{padding:6px 0 30px}
.education-eyebrow,.education-category{color:#80684b;font-size:.8125rem;line-height:1.6;margin:0 0 10px}
.education-intro h1{font-size:clamp(1.9rem,3.4vw,2.7rem);line-height:1.5;margin:0 0 16px;letter-spacing:0}
.education-intro>p:last-child{max-width:760px;color:var(--muted);margin:0;font-size:1rem}
.education-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 28px;padding:0 0 24px;border-bottom:1px solid var(--line)}
.education-wrap>.education-categories{width:100%;max-width:560px;margin-inline:auto}
.education-categories a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:7px 4px;border:1px solid #d3d6d3;background:#fffdfa;color:var(--navy);font-size:.875rem;line-height:1.5;letter-spacing:0;white-space:normal;text-align:center;text-decoration:none}
.education-categories a:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.education-categories a:active{border-color:var(--navy)}
.education-categories a[aria-current="page"]{background:var(--navy);border-color:var(--navy);color:#fff}
.education-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.education-card{display:flex;flex-direction:column;min-width:0;padding:26px 28px;border:1px solid #e1dbd0;background:#fffdfa;color:var(--ink);text-decoration:none}
.education-card h2{font-size:1.25rem;line-height:1.65;letter-spacing:0;margin:0 0 12px;font-family:var(--sans)}
.education-excerpt{font-size:.9375rem;line-height:1.85;color:var(--muted);margin:0 0 18px}
.education-read{font-size:.8125rem;color:var(--navy);margin-top:auto}
.education-reading{max-width:850px;margin-inline:auto;padding:42px 54px;background:#fffdfa;border:1px solid #e1dbd0}
.education-reading-header{margin-bottom:22px}
.education-reading-header h1{font-size:clamp(1.65rem,2.9vw,2rem);line-height:1.5;letter-spacing:0;margin:0;text-wrap:balance}
.education-description{font-size:.9375rem;color:var(--muted);margin:0;line-height:1.85}
.education-body{font-size:1.0625rem;line-height:1.85;overflow-wrap:anywhere}
.education-body p{margin:0 0 16px;text-wrap:pretty}
.education-body h2{font-size:1.3125rem;line-height:1.6;margin:30px 0 14px;letter-spacing:0;font-family:var(--sans)}
.education-body h3,.education-body h4,.education-body h5,.education-body h6{font-size:1.1875rem;line-height:1.65;margin:24px 0 12px;font-family:var(--sans)}
.education-body ul,.education-body ol{padding-left:1.5em;margin:0 0 23px}
.education-body li{padding-left:.15em;margin:9px 0;text-wrap:pretty}
.education-key-points li,.education-figure figcaption,.education-video figcaption{text-wrap:pretty}
.education-body blockquote{margin:22px 0;padding-left:18px;border-left:3px solid var(--line)}
.education-figure,.education-video{margin:8px 0 28px}
.education-figure img{display:block;width:auto;height:auto;max-height:320px;max-width:min(100%,var(--education-image-max-width,640px));object-fit:contain;margin-inline:auto;background:#fff}
.education-image-link{display:block;width:fit-content;max-width:100%;margin-inline:auto;text-decoration:none;color:var(--navy)}
.education-image-link span{display:block;text-align:right;font-size:.75rem;line-height:1.6;margin-top:6px;text-decoration:underline;text-underline-offset:3px}
.education-image-link:focus-visible,.education-topic-menu summary:focus-visible{outline:2px solid var(--navy);outline-offset:4px}
.education-figure figcaption,.education-video figcaption{font-size:.8125rem;line-height:1.8;color:var(--muted);margin-top:12px}
.education-image-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:8px 0 28px}
.education-image-pair .education-figure{margin:0;min-width:0}
.education-image-pair .education-figure img{aspect-ratio:1;object-fit:contain}
.education-article-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:850px;margin:0 auto 16px}
.education-article-tools .education-breadcrumb{margin:0;font-size:.75rem}
.education-topic-menu{position:relative;flex-shrink:0}
.education-topic-menu summary{display:flex;align-items:center;gap:7px;min-height:44px;color:var(--navy);font-size:.8125rem;cursor:pointer;list-style:none}
.education-topic-menu summary::-webkit-details-marker{display:none}
.education-topic-menu summary::after{content:'＋';font-size:1rem}
.education-topic-menu[open] summary::after{content:'－'}
.education-topic-menu .education-categories{position:absolute;right:0;top:100%;z-index:5;width:360px;max-width:calc(100vw - 36px);grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px;margin:0;border:1px solid var(--line);background:#fffdfa}
.education-topic-menu .education-categories a{padding:7px 3px;font-size:.8125rem}
@media(max-width:650px){.education-image-pair{grid-template-columns:1fr;gap:24px}.education-image-pair .education-figure img{width:min(100%,320px)}}
.education-video-frame{aspect-ratio:16 / 9;width:100%;overflow:hidden;background:#f0ede6}
.education-video iframe{display:block;width:100%;height:100%;border:0}
.education-video-clinic video{display:block;width:100%;max-width:260px;height:auto;margin-inline:auto;background:#173a48}
.education-video-clinic figcaption{text-align:center}
.education-video a,.education-treatment a,.education-references a{color:var(--navy);text-decoration:underline;text-decoration-color:#b9aa92;text-underline-offset:4px}
.education-treatment,.education-references{border-top:1px solid var(--line);padding-top:22px;margin-top:28px}
.education-treatment{font-size:.9375rem}
.education-references{font-size:.8125rem;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
.education-references h2{font-size:1rem;line-height:1.6;margin:0 0 12px;letter-spacing:0;font-family:var(--sans)}
.education-references ul{padding-left:20px;margin:0}
.education-references li{margin:9px 0;text-wrap:pretty}
.education-teaser{padding:72px 0;border-top:1px solid var(--line);background:var(--paper)}
.education-teaser-inner{width:min(1200px,calc(100% - 96px));margin-inline:auto}
.education-teaser-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.education-teaser-heading h2{font-size:2rem;letter-spacing:0}
.education-all{padding:7px 0;border-bottom:1px solid var(--gold);font-size:.9375rem;color:var(--navy)}
.education-teaser-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.education-teaser-card{display:flex;flex-direction:column;min-width:0;padding:26px;border:1px solid #e1dbd0;background:#fffdfa}
.education-teaser-card h3{font-size:1.125rem;line-height:1.6;margin:0 0 12px}
@media(hover:hover) and (pointer:fine){.education-categories a:hover{border-color:var(--navy)}.education-card:hover h2,.education-teaser-card:hover h3{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}}

@media(max-width:900px){.education-wrap{width:calc(100% - 48px)}.education-teaser-inner{width:calc(100% - 64px)}.education-reading{padding:34px 38px}.education-teaser-list{gap:14px}.education-teaser-card{padding:22px}}
@media(max-width:650px){.education-wrap{width:calc(100% - 36px);padding:23px 0 44px}.education-breadcrumb{font-size:.75rem;margin-bottom:24px}.education-intro{padding:0 0 24px}.education-intro>p:last-child{font-size:.9375rem}.education-categories{gap:6px;padding-bottom:22px;margin-bottom:24px}.education-list{grid-template-columns:1fr;gap:14px}.education-card{padding:22px}.education-card h2{font-size:1.1875rem}.education-reading{padding:26px 22px}.education-reading-header h1{font-size:1.5625rem}.education-body{font-size:1rem}.education-body h2{font-size:1.1875rem;margin-top:27px}.education-body h3,.education-body h4,.education-body h5,.education-body h6{font-size:1.125rem}.education-teaser{padding:48px 0}.education-teaser-inner{width:calc(100% - 40px)}.education-teaser-heading{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:24px}.education-teaser-heading h2{font-size:1.75rem}.education-teaser-list{grid-template-columns:1fr}}
@media(max-width:360px){.education-wrap{width:calc(100% - 28px)}.education-reading{padding-inline:18px}.education-categories a{font-size:.8125rem}.education-topic-menu .education-categories{max-width:calc(100vw - 28px)}}
@media(max-width:650px){.education-article-wrap{padding-top:10px}.education-article-tools{gap:6px;margin-bottom:10px}.education-article-tools .education-breadcrumb ol{gap:4px 7px}.education-article-tools .education-breadcrumb li+li::before{margin-right:7px}.education-article-tools .education-breadcrumb li:first-child{display:none}.education-article-tools .education-breadcrumb li:nth-child(2)::before{display:none}.education-article-wrap .education-reading{padding:22px 18px}.education-reading-header{margin-bottom:18px}.education-figure img{max-height:260px}.education-image-pair .education-figure img{max-height:220px;width:auto}.education-topic-menu .education-categories{margin:0}}
@media print{.education-wrap{width:100%;padding:0}.education-categories,.education-treatment{display:none}.education-reading{max-width:none;border:0;padding:0;background:#fff}.education-body h2,.education-body h3{break-after:avoid}.education-body p,.education-body li{orphans:3;widows:3}.education-video-frame{display:none}}
@media print{.education-topic-menu,.education-image-link span{display:none}}

/* Keep the article reading order before the final references. */
.education-pagination{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0 0}
.education-page-link{display:flex;flex-direction:column;justify-content:flex-start;gap:6px;min-width:0;min-height:76px;padding:14px 16px;border:1px solid var(--line);background:var(--paper);color:var(--navy);text-decoration:none}
.education-page-prev{grid-column:1}
.education-page-next{grid-column:2}
.education-page-direction{font-size:.8125rem;line-height:1.5;color:var(--muted)}
.education-page-title{font-size:.9375rem;line-height:1.65;overflow-wrap:anywhere}
.education-page-link:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.education-page-link:active{border-color:var(--navy)}
@media(hover:hover) and (pointer:fine){.education-page-link:hover{border-color:var(--navy)}.education-page-link:hover .education-page-title{text-decoration:underline;text-underline-offset:3px}}
@media(max-width:650px){.education-card h2,.education-body h2,.education-body h3,.education-body h4,.education-body h5,.education-body h6{text-wrap:balance}.education-pagination{grid-template-columns:1fr;gap:8px;margin-top:22px}.education-page-prev,.education-page-next{grid-column:1}.education-page-link{padding:12px 14px}.education-page-title{font-size:.9375rem;line-height:1.65;text-wrap:balance}}

@media print{.education-pagination{display:none}}

/* Counts use the current library; keep the category grid readable on narrow phones. */
.education-categories a{flex-wrap:wrap;column-gap:2px;padding-inline:2px}
.education-category-name{max-width:100%}
.education-category-count{font-size:.8125rem;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:360px){.education-categories a{flex-direction:column;flex-wrap:nowrap;row-gap:0}.education-category-count{line-height:1.35}}

/* The all-articles link has its own row above the nine topic categories. */
.education-categories>.education-category-all{grid-column:1/-1;flex-direction:row;gap:4px}
