/* eg-legacy.css : brings the existing articles (migrated block markup + untouched old patterns) onto the eg-2026 look.
   Loaded after eg.css (functions.php enqueues it when non-empty). Only touches .eg-prose content. */

/* ---- 1. dot separators: pale, small, tight (the h2 savanna bar already divides sections) ---- */
.eg-prose .wp-block-separator.is-style-dots{margin-top:2.4rem;margin-bottom:0;line-height:1;height:auto;overflow:visible}
.eg-prose .wp-block-separator.is-style-dots::before{color:#d3c6aa;font-size:2rem;letter-spacing:.9em;line-height:.7;display:block;padding-left:.9em}
.eg-prose .wp-block-separator.is-style-dots + .wp-block-heading,
.eg-prose .wp-block-separator.is-style-dots + h2,
.eg-prose .wp-block-separator.is-style-dots + h3{margin-top:1.8rem}
.eg-prose .wp-block-separator.is-style-dots + .eg-toc{margin-top:1.2rem}

/* ---- 2. plain lists get the brand dot list, plain ordered lists get clay numerals (no content change) ---- */
.eg-prose ul:not([class*="eg-"]):not(.eg-sources *):not(.eg-toc *):not(.schema-faq *){list-style:none;padding-left:0}
.eg-prose ul:not([class*="eg-"]):not(.eg-sources *):not(.eg-toc *):not(.schema-faq *) > li{position:relative;padding-left:2.6rem}
.eg-prose ul:not([class*="eg-"]):not(.eg-sources *):not(.eg-toc *):not(.schema-faq *) > li::before{content:"";position:absolute;left:.4rem;top:.62em;width:.5em;height:.5em;border-radius:50%;background:var(--clay)}
.eg-prose ol:not([class*="eg-"]):not(.eg-sources *):not(.eg-toc *):not(.schema-faq *){padding-left:3rem}
.eg-prose ol:not([class*="eg-"]):not(.eg-sources *):not(.eg-toc *):not(.schema-faq *) > li{padding-left:.6rem}
.eg-prose ol:not([class*="eg-"]):not(.eg-sources *):not(.eg-toc *):not(.schema-faq *) > li::marker{color:var(--clay);font-family:var(--head);font-weight:700;font-size:1.05em}
.eg-prose li ul,.eg-prose li ol{margin-top:.8rem}

/* ---- 3. callouts converted from the old coloured boxes ---- */
/* neutral note / recommended reading / facts box: open, hairline-led */
.eg-prose .eg-note{margin-top:2.6rem;margin-bottom:2.6rem}
.eg-note>p:not(.eg-label),.eg-note li{font-size:1.65rem!important}
.eg-note .eg-label{color:var(--acacia)}
.eg-note p+p,.eg-note p+ul,.eg-note ul+p{margin-top:.9rem!important}
.eg-note ul{margin:.6rem 0 0;padding-left:0}
.eg-note li{margin-bottom:.5rem}
.eg-note a{font-weight:600}
/* conclusion: the one dark callout at the end of an article */
.eg-prose>.eg-bottom{max-width:var(--wide)}
.eg-bottom{background:var(--acacia-deep);color:#dfe6da;border-radius:18px;padding:3.6rem clamp(2.2rem,6vw,6.4rem) 3.2rem;margin-top:4.6rem;margin-bottom:3.4rem}
.eg-bottom h2,.eg-bottom h3,.eg-bottom h4{color:#fff;font-size:clamp(2.6rem,3vw,3.2rem);line-height:1.2;margin:0 auto 1.2rem}
.eg-bottom :is(h2,h3,h4,p,ul,ol){max-width:68rem;margin-left:auto;margin-right:auto}
.eg-bottom h2::before{background:var(--savanna);margin-bottom:1.3rem}
.eg-bottom p,.eg-bottom li{color:#dfe6da;font-size:1.8rem}
.eg-bottom p{margin-bottom:1.4rem}
.eg-bottom p:last-child{margin-bottom:0}
.eg-bottom strong,.eg-bottom b{color:#fff}
.eg-bottom a,.eg-prose .eg-bottom a:not(.wp-block-button__link){color:#fff;text-decoration-color:var(--savanna);text-decoration-thickness:2px}
.eg-bottom a:hover,.eg-prose .eg-bottom a:not(.wp-block-button__link):hover{color:var(--savanna)}
.eg-bottom ul>li::before{background:var(--savanna)!important}
@media (max-width:700px){.eg-bottom{padding:2.8rem 2.2rem 2.4rem;border-radius:14px}.eg-bottom p,.eg-bottom li{font-size:1.7rem}}
/* three side-by-side stats (old accent columns): open numerals with a savanna rule */
.eg-prose .eg-statcols{gap:3rem;flex-wrap:nowrap;margin-top:2.6rem;margin-bottom:2.6rem}
.eg-statcols>.wp-block-column{min-width:0;border-top:3px solid var(--savanna);padding-top:1.4rem}
.eg-statcols h3,.eg-prose .eg-statcols h3{font:700 1.2rem/1.3 var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--acacia);margin:0 0 .6rem}
.eg-statcols p,.eg-prose .eg-statcols p{margin:0 0 .8rem;font-size:1.75rem;line-height:1.55}
@media (max-width:700px){.eg-prose .eg-statcols{flex-direction:column;gap:2rem}}
/* pros / cons pair (reuses the myth/fact cards) */
.eg-mf li{font-size:1.6rem;line-height:1.55;margin-bottom:.7rem}
.eg-mf ul{margin:.4rem 0 0}
.eg-mf ul.eg-check li{padding-left:3.2rem}
.eg-mf ul.eg-check li::before{width:2.1rem;height:2.1rem;top:.2rem;background-size:1.2rem}
.eg-mf ul.eg-dot li::before{background:#7d3414}
/* did-you-know in the old "single fact" form */
.eg-dyk>p:not(.eg-label){line-height:1.55}

/* ---- 4. media ---- */
/* YouTube / video embeds: responsive 16:9, rounded, spaced */
.eg-prose .wp-block-embed{margin:3.4rem auto}
.eg-prose>.wp-block-embed{max-width:var(--wide)}
.eg-prose .wp-block-embed__wrapper{position:relative;aspect-ratio:16/9;border-radius:var(--r);overflow:hidden;background:var(--dusk);box-shadow:var(--shadow)}
.eg-prose .wp-block-embed__wrapper::before{display:none!important}
.eg-prose .wp-block-embed__wrapper iframe{position:absolute;inset:0;width:100%!important;height:100%!important;border:0;border-radius:0}
.eg-prose .wp-block-embed figcaption{margin-top:1rem}
/* Google Maps iframes dropped in as HTML blocks */
.eg-prose iframe[src*="google.com/maps"]{display:block;width:100%;height:34rem;border:0;border-radius:var(--r);margin:0;background:var(--sand-deep)}
.eg-prose .wp-block-group>iframe[src*="google.com/maps"]{margin-top:.4rem}
@media (max-width:700px){.eg-prose iframe[src*="google.com/maps"]{height:26rem}}
/* pull quotes (old inline-styled ones included) */
.eg-prose .wp-block-pullquote{padding:.6rem 0 .6rem 2.8rem;border:0;border-left:.5rem solid var(--savanna);background:transparent;text-align:left;box-shadow:none}
.eg-prose .wp-block-pullquote blockquote{margin:0;padding:0;border:0}
.eg-prose .wp-block-pullquote p{font-size:2.8rem;line-height:1.28}
@media (max-width:700px){.eg-prose .wp-block-pullquote p,.eg-prose blockquote p,.eg-pull p{font-size:2.3rem}}
/* images + captions */
.eg-prose .wp-block-image figcaption,.eg-prose figure>.wp-element-caption{padding-top:.2rem;border-top:0}
.eg-prose .wp-block-image{max-width:var(--measure)}
.eg-prose .wp-block-image.alignwide,.eg-prose .wp-block-image.alignfull{max-width:var(--wide)}
.eg-prose .wp-block-image img{height:auto}
/* buttons left in the content */
.eg-prose .wp-block-buttons{margin-top:2.4rem;margin-bottom:2.4rem}
/* leftover spacer blocks */
.eg-prose .wp-block-spacer{height:1.4rem!important}
/* the in-sentence bold of a converted single fact must not render as the "did you know" headline */
.eg-dyk-fact strong:first-child{font-family:inherit;font-size:inherit;font-weight:650}
/* long bare URLs used as link text must wrap instead of widening the page */
.eg-prose p a,.eg-prose li a,.eg-prose td a{overflow-wrap:anywhere}
