/* Emergency / Visual first-aid guide. Page-scoped progressive enhancement.
   Medical warnings, contact numbers and first-aid bodies are never animated away. */
html body #main.ed-engagement{--em-line:#d3e4ea;--em-pink:#b21765;--em-blue:#246c85;--em-ink:#163c49;--em-ease:cubic-bezier(.2,.75,.2,1)}
html body #main.ed-engagement .em-hero-copy{padding:0;min-width:0;max-width:100%}
html body #main.ed-engagement .em-hero-copy h1{font-size:clamp(2.85rem,4.6vw,4.4rem);font-weight:730;line-height:1.09;letter-spacing:-.045em}
html body #main.ed-engagement .em-hero-copy>.ed-eyebrow{margin-bottom:1rem}
/* Static, legible experience badge; no number counter or pending reveal. */
html body #main.ed-engagement .em-experience{display:inline-flex;align-items:center;gap:1rem;max-width:100%;padding:.85rem 1.15rem;margin-bottom:1.4rem;border:1px solid #edda8b;border-radius:1.1rem;background:linear-gradient(105deg,#fff1a8,#fff9de 72%,#fffdf3);box-shadow:0 7px 20px #dbc87a18}
html body #main.ed-engagement .em-years{display:flex;align-items:flex-start;color:var(--em-pink);font-size:3.5rem;line-height:1;letter-spacing:-.075em;font-weight:800;flex-shrink:0}
html body #main.ed-engagement .em-years>span{font-size:2rem;letter-spacing:0;margin-top:.1rem}
html body #main.ed-engagement .em-experience>div{display:grid;gap:.15rem;min-width:0}
html body #main.ed-engagement .em-experience strong{font-size:1.125rem;line-height:1.4;color:var(--em-ink)}
html body #main.ed-engagement .em-experience>div>span{font-size:1rem;line-height:1.5;color:#615734}
/* A shortcut to critical guidance sits before the optional visual selector. */
html body #main.ed-engagement .em-priority-links{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding:1.05rem 1.25rem;margin-bottom:1.4rem;border:1px solid #eadc9f;border-radius:1rem;background:#fff9df}
html body #main.ed-engagement .em-priority-links>a{font-size:1rem;line-height:1.65;display:inline-flex;gap:.5rem;align-items:center;flex-wrap:wrap}
html body #main.ed-engagement .em-priority-links>a:first-child{display:block}
html body #main.ed-engagement .em-priority-links strong{display:block;font-size:1.125rem;color:#574618}
html body #main.ed-engagement .em-priority-links span{display:flex;gap:.5rem;align-items:center}
html body #main.ed-engagement .em-priority-links .icon{width:1.05rem;height:1.05rem}
html body #main.ed-engagement .em-priority-links a:hover{text-decoration:underline;text-underline-offset:.22em}
/* Keep one visual panel beside the four existing disclosures. The source first-aid
   text remains in those disclosures; this is navigation, not symptom assessment. */
html body #main.ed-engagement .em-explorer{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:start;gap:1.65rem;--em-active:var(--em-pink)}
html body #main.ed-engagement .em-visual-card{position:relative;min-width:0;border:1px solid var(--em-line);border-radius:1.55rem;box-shadow:0 18px 38px #1644520b;background:#fff;overflow:clip}
html body #main.ed-engagement .em-visual-heading{padding:1.5rem 1.6rem .2rem;background:#edf7fa}
html body #main.ed-engagement .em-kicker{display:block;font-size:.9375rem;line-height:1.5;font-weight:650;letter-spacing:.045em;color:#32657a;margin-bottom:.6rem}
html body #main.ed-engagement .em-visual-heading h3{font-size:1.85rem;line-height:1.2;letter-spacing:-.035em;margin:0;color:var(--em-ink)}
html body #main.ed-engagement .em-canvas{position:relative;isolation:isolate;height:16rem;overflow:hidden;background:radial-gradient(ellipse at var(--em-x,55%) var(--em-y,38%),#fff 0,#edf7fa 68%,#dceff5 100%);pointer-events:auto}
html body #main.ed-engagement .em-canvas::after{position:absolute;content:'';left:26%;right:17%;bottom:1.3rem;height:.7rem;border-radius:50%;background:#3c8da115;filter:blur(5px);z-index:-1}
html body #main.ed-engagement .em-guide-tooth{position:absolute;left:19%;top:-1.7rem;width:20rem;max-width:68%;height:20rem;object-fit:contain;filter:drop-shadow(0 13px 14px #2d7c9123);pointer-events:none}
html body #main.ed-engagement .em-orbit{position:absolute;left:22%;top:.2rem;width:64%;height:90%;border:1px solid #fff;border-radius:50%;transform:rotate(-23deg) scaleY(.83);pointer-events:none}
html body #main.ed-engagement .em-orbit-two{left:20%;top:1.5rem;width:62%;height:80%;border-color:#77aebd4a;border-style:dashed;transform:rotate(22deg) scaleY(.73)}
html body #main.ed-engagement .em-scene-caption{position:absolute;left:1.5rem;top:1rem;color:#3f6473;font-size:.875rem;line-height:1.65;max-width:9rem;pointer-events:none}
html body #main.ed-engagement .em-scene-caption strong{font-weight:650}
html body #main.ed-engagement .em-scene-signs{position:absolute;right:1.8rem;bottom:2.7rem;width:4.1rem;height:4.1rem;background:#fff1ae;border-radius:1.15rem;box-shadow:0 9px 20px #43687919;border:3px solid #fff;pointer-events:none}
html body #main.ed-engagement .em-scene-sign{position:absolute;inset:0;display:grid;place-items:center;color:var(--em-active);opacity:0;transform:scale(.78) rotate(-10deg);transition:opacity .22s,transform .4s var(--em-ease)}
html body #main.ed-engagement .em-scene-sign .icon{width:2rem;height:2rem}
html body #main.ed-engagement .em-explorer:not([data-em-current]) [data-em-symbol=toothache],
html body #main.ed-engagement .em-explorer[data-em-current=toothache] [data-em-symbol=toothache],
html body #main.ed-engagement .em-explorer[data-em-current=broken-tooth] [data-em-symbol=broken-tooth],
html body #main.ed-engagement .em-explorer[data-em-current=lost-restoration] [data-em-symbol=lost-restoration],
html body #main.ed-engagement .em-explorer[data-em-current=swelling] [data-em-symbol=swelling]{opacity:1;transform:scale(1) rotate(0)}
html body #main.ed-engagement .em-explorer[data-em-current=broken-tooth]{--em-active:#246d86}
html body #main.ed-engagement .em-explorer[data-em-current=lost-restoration]{--em-active:#806415}
html body #main.ed-engagement .em-spark{position:absolute;right:21%;top:1.9rem;width:1.15rem;height:1.15rem;background:#b953881c;clip-path:polygon(50% 0,62% 35%,100% 50%,62% 65%,50% 100%,38% 65%,0 50%,38% 35%);pointer-events:none}
html body #main.ed-engagement .em-dot{position:absolute;left:24%;bottom:3.5rem;width:.45rem;height:.45rem;background:#e0b33f;border-radius:50%;pointer-events:none}
html body #main.ed-engagement .em-topics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.65rem;padding:1.15rem;background:#f8fcfd}
html body #main.ed-engagement .em-topic{position:relative;min-width:0;display:flex;align-items:center;gap:.6rem;text-align:left;min-height:5.7rem;padding:.85rem .65rem;border:1px solid #cddfe6;border-radius:1rem;background:white;color:var(--em-ink);text-decoration:none;transition:background .23s,border-color .23s,box-shadow .3s;cursor:pointer}
html body #main.ed-engagement .em-topic-icon{display:grid;place-items:center;width:2.4rem;height:2.4rem;flex-shrink:0;border-radius:.8rem;background:#edf7fa;color:#326d82;transition:color .2s,background .2s,transform .35s}
html body #main.ed-engagement .em-topic-icon .icon{width:1.35rem;height:1.35rem}
html body #main.ed-engagement .em-topic-label{display:block;min-width:0;padding-right:.65rem;overflow-wrap:anywhere}
html body #main.ed-engagement .em-topic strong{font-size:1rem;line-height:1.4;font-weight:680;display:block}
html body #main.ed-engagement .em-topic small{font-size:1rem;line-height:1.5;color:#54717c;display:block;margin-top:.2rem}
html body #main.ed-engagement .em-topic-number{font-size:.75rem;font-weight:650;line-height:1;position:absolute;right:.65rem;top:.6rem;color:#7b97a1}
html body #main.ed-engagement .em-topic:hover{border-color:#b93077;background:#fff8fc;box-shadow:0 6px 17px #9049700b}
html body #main.ed-engagement .em-topic:hover .em-topic-icon{transform:rotate(-7deg)}
html body #main.ed-engagement .em-topic[aria-pressed=true]{border-color:#b5216b;box-shadow:inset 0 -3px #b5216b;background:#fff4fa;color:#9b1858}
html body #main.ed-engagement .em-topic[aria-pressed=true] .em-topic-icon{background:#f9dfea;color:#a1165c}
html body #main.ed-engagement .em-topic:focus-visible{outline:3px solid #24778e;outline-offset:3px;z-index:2}
html body #main.ed-engagement .em-guide-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;padding:1.05rem 1.35rem;font-size:1rem;line-height:1.5;border-top:1px solid var(--em-line)}
html body #main.ed-engagement .em-guide-status>span{font-size:.9375rem;color:#486571}
html body #main.ed-engagement .em-read-notes{font-size:1rem}
html body #main.ed-engagement .em-notes-column{min-width:0}
html body #main.ed-engagement .em-notes-column .ed-aid-toolbar{padding:.1rem 0 .2rem;margin-bottom:1rem;align-items:center;gap:.55rem}
html body #main.ed-engagement .em-notes-column .ed-tips{display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem}
html body #main.ed-engagement .ed-tip{scroll-margin-top:1.25rem}
html body #main.ed-engagement .em-notes-column .ed-tip summary{padding:1.05rem 1.2rem;gap:.8rem}
html body #main.ed-engagement .em-notes-column .ed-tip summary strong{font-size:1.2rem;line-height:1.45}
html body #main.ed-engagement .em-notes-column .ed-tip summary small{font-size:1rem;line-height:1.6}
html body #main.ed-engagement .em-notes-column .ed-tip[open]{border-color:#ba6894}
html body #main.ed-engagement .em-notes-column .ed-tip-body{padding:1.2rem;font-size:1.125rem}
html body #main.ed-engagement .em-guide-contact{margin-top:1.5rem;padding:1.35rem 1.6rem;display:flex;align-items:center;justify-content:space-between;gap:1.15rem 2rem;flex-wrap:wrap;background:#edf7fa;border:1px solid var(--em-line);border-radius:1.2rem}
html body #main.ed-engagement .em-guide-contact>div:first-child{flex:1 1 23rem}
html body #main.ed-engagement .em-guide-contact strong{font-size:1.1875rem;line-height:1.5;display:block;margin:0 0 .4rem}
html body #main.ed-engagement .em-guide-contact p{font-size:1rem;line-height:1.65;margin:0;color:#496672}
html body #main.ed-engagement .em-guide-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
html body #main.ed-engagement .em-guide-actions .text-link{font-size:1rem}
/* More visible section entrances; first-aid text and the two urgent warnings
   stay fully opaque, not part of the reveal targets. */
html body #main.ed-engagement [data-em-section]{position:relative}
html body #main.ed-engagement [data-em-section] h2::after{content:'';display:block;width:4.2rem;height:.25rem;border-radius:.2rem;margin-top:1.1rem;background:linear-gradient(90deg,#bd1b68 0 60%,#ebc23e 60%);transform-origin:left;transform:scaleX(1)}
html body #main.ed-engagement .em-section-waiting h2::after{transform:scaleX(.12);opacity:.3}
html body #main.ed-engagement .em-section-seen h2::after{transition:transform .9s var(--em-ease),opacity .7s;transform:scaleX(1);opacity:1}
html body #main.ed-engagement .request-panel.em-revealing:focus-within{opacity:1!important;transform:none!important}
html body #main.ed-engagement .ed-steps>li{transition:border-color .3s,box-shadow .3s}
html body #main.ed-engagement .ed-steps>li:hover{border-color:#b42166}
html body #main.ed-engagement .ed-cost-note{box-shadow:0 12px 27px #e4c9690f}
@media(prefers-reduced-motion:no-preference){
 html body #main.ed-engagement .em-guide-tooth{animation:em-float 6.4s ease-in-out infinite}
 html body #main.ed-engagement .ed-tooth{animation:em-hero-float 7s ease-in-out infinite!important}
 html body #main.ed-engagement .em-orbit-one{animation:em-orbit 24s linear infinite}
 html body #main.ed-engagement .em-orbit-two{animation:em-orbit 32s linear infinite reverse}
 html body #main.ed-engagement .ed-orbit-one{animation:ed-orbit 26s linear infinite!important}
 html body #main.ed-engagement .ed-orbit-two{animation:ed-orbit-reverse 35s linear infinite!important}
 html body #main.ed-engagement :is(.em-spark,.em-dot){animation:em-spark 5.8s ease-in-out infinite}
 @keyframes em-float{0%,100%{transform:translateY(2px) rotate(-2deg)}50%{transform:translateY(-14px) rotate(2deg)}}
 @keyframes em-hero-float{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-17px) rotate(1deg)}}
 @keyframes em-orbit{from{transform:rotate(-23deg) scaleY(.8)}to{transform:rotate(337deg) scaleY(.8)}}
 @keyframes em-spark{0%,100%{opacity:.5;transform:scale(.86)}50%{opacity:1;transform:scale(1.15)}}
}
html body #main.ed-engagement .em-offscreen :is(.em-guide-tooth,.em-orbit,.em-spark,.em-dot),
html body #main.ed-engagement.ed-resting .ed-card-art *{animation-play-state:paused!important}
html.motion-paused body #main.ed-engagement :is(.ed-card-art *,.em-guide-tooth,.em-orbit,.em-spark,.em-dot){animation:none!important}
html.motion-paused body #main.ed-engagement *,html.motion-paused body #main.ed-engagement *::after{transition:none!important}
html.motion-paused body #main.ed-engagement .em-section-waiting h2::after{transform:none;opacity:1}
@media(max-width:1050px){html body #main.ed-engagement .em-explorer{grid-template-columns:1fr}.em-visual-card{width:100%}html body #main.ed-engagement .em-canvas{height:15.5rem}html body #main.ed-engagement .em-guide-tooth{left:calc(50% - 9rem);width:18rem;max-width:75%;height:18rem}html body #main.ed-engagement .em-scene-signs{right:20%;bottom:2.2rem}html body #main.ed-engagement .em-topics{grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))}}
@media(max-width:700px){html body #main.ed-engagement .em-priority-links{flex-direction:column;align-items:flex-start;gap:.8rem}html body #main.ed-engagement .em-guide-contact{padding:1.3rem}html body #main.ed-engagement .em-guide-actions{width:100%}html body #main.ed-engagement .em-guide-actions>.btn{width:100%}html body #main.ed-engagement .em-guide-actions>.text-link{margin-inline:auto}}
@media(max-width:500px){
 html body #main.ed-engagement .em-experience{gap:.8rem;padding:.85rem 1rem;margin-bottom:1.1rem}
 html body #main.ed-engagement .em-years{font-size:3rem}
 html body #main.ed-engagement .em-years>span{font-size:1.7rem}
 html body #main.ed-engagement .em-experience strong{font-size:1.0625rem}
 html body #main.ed-engagement .em-experience>div>span{font-size:.9375rem}
 html body #main.ed-engagement .em-hero-copy h1{font-size:clamp(2.6rem,10.6vw,3.4rem)}
 html body #main.ed-engagement .em-visual-heading{padding:1.25rem 1.1rem .25rem}
 html body #main.ed-engagement .em-visual-heading h3{font-size:1.6rem}
 html body #main.ed-engagement .em-kicker{font-size:.875rem;letter-spacing:.02em}
 html body #main.ed-engagement .em-canvas{height:14.3rem}
 html body #main.ed-engagement .em-guide-tooth{left:15%;top:-.8rem;width:70%;height:16rem}
 html body #main.ed-engagement .em-scene-caption{left:1rem;top:.5rem;font-size:.8125rem;max-width:6.5rem}
 html body #main.ed-engagement .em-scene-signs{right:1.5rem;width:3.5rem;height:3.5rem;bottom:1.5rem}
 html body #main.ed-engagement .em-scene-sign .icon{width:1.7rem;height:1.7rem}
 html body #main.ed-engagement .em-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;padding:.85rem}
 html body #main.ed-engagement .em-topic{display:flex;flex-direction:column;align-items:flex-start;padding:.85rem .7rem;gap:.55rem;min-height:7.3rem}
 html body #main.ed-engagement .em-topic-label{padding-right:0}
 html body #main.ed-engagement .em-topic strong{font-size:1rem}
 html body #main.ed-engagement .em-topic small{font-size:1rem}
 html body #main.ed-engagement .em-topic-number{right:.7rem;top:.85rem}
 html body #main.ed-engagement .em-guide-status{padding:1rem}
 html body #main.ed-engagement .em-notes-column .ed-tip summary{padding:18px;gap:12px}
 html body #main.ed-engagement .em-notes-column .ed-tip summary strong{font-size:1.125rem}
 html body #main.ed-engagement .em-notes-column .ed-tip-body{padding:18px}
 html body #main.ed-engagement .em-priority-links{padding:1rem}
}
/* Rem-based grid minima follow text enlargement, not just the viewport size. */
@supports(container-type:inline-size){
 html body #main.ed-engagement .em-visual-card{container-type:inline-size}
 @container(max-width:18rem){
  html body #main.ed-engagement .em-topics{grid-template-columns:minmax(0,1fr)}
  html body #main.ed-engagement .em-topic{flex-direction:row;align-items:center;min-height:4.7rem}
  html body #main.ed-engagement .em-topic-label{padding-right:.9rem}
 }
 @container(max-width:15rem){
  html body #main.ed-engagement .em-scene-caption{display:none}
  html body #main.ed-engagement .em-topics{padding:14px;gap:12px}
  html body #main.ed-engagement .em-topic{padding:16px;flex-direction:column;align-items:flex-start}
  html body #main.ed-engagement .em-topic-number{display:none}
  html body #main.ed-engagement .em-visual-heading{padding:20px 18px 6px}
  html body #main.ed-engagement .em-canvas{height:210px}
  html body #main.ed-engagement .em-guide-tooth{height:235px;width:75%;left:12%;top:-12px}
  html body #main.ed-engagement .em-scene-signs{width:52px;height:52px;right:18px;bottom:18px}
  html body #main.ed-engagement .em-scene-sign .icon{width:28px;height:28px}
 }
}
@media(prefers-reduced-motion:reduce){html body #main.ed-engagement *,html body #main.ed-engagement *::before,html body #main.ed-engagement *::after{animation:none!important;transition:none!important}html body #main.ed-engagement .em-section-waiting h2::after{transform:none;opacity:1}}
@media print{html body #main.ed-engagement .em-visual-card,html body #main.ed-engagement .em-priority-links,html body #main.ed-engagement .em-guide-contact{display:none}html body #main.ed-engagement .em-explorer{display:block}html body #main.ed-engagement [data-em-section] h2::after{display:none}html body #main.ed-engagement .em-experience{box-shadow:none;background:white;border:1px solid #999}}
