/* United Legal: coded illustrations (motion/). Everything here is scoped to the illustrations' own classes
   or to the slots they sit in; no page fonts or layout rules are changed. Added 2026-11-14; revised 2026-11-16:
   every slot holds a still of the finished picture in the page itself (.ula-still), shown from the first paint,
   without scripts, and whenever a scene cannot be drawn; there are no buttons on a scene. */

/* shared paint definitions the engine keeps once per page */
.ula-defs{position:absolute;width:0;height:0;overflow:hidden}

/* words drawn inside the artwork use the site's own fonts */
.ula-scene svg .lb,.ula-scene svg .nm,[data-ula-mounted] svg .lb,[data-ula-mounted] svg .nm{dominant-baseline:central}
.ula-scene svg .lb-d,[data-ula-mounted] svg .lb-d{font-family:'Barlow Condensed','Arial Narrow',Arial,sans-serif;font-weight:600}
.ula-scene svg .lb-b,[data-ula-mounted] svg .lb-b{font-family:Montserrat,'Segoe UI',Arial,sans-serif;font-weight:600}
.ula-scene svg .nm,[data-ula-mounted] svg .nm{font-family:Montserrat,'Segoe UI',Arial,sans-serif;font-weight:600;font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
.ula-scene svg .nm-d,[data-ula-mounted] svg .nm-d{font-family:'Barlow Condensed','Arial Narrow',Arial,sans-serif}
.ula-scene svg[lang="fa"] .lb,[data-ula-mounted] svg[lang="fa"] .lb{font-family:Vazirmatn,Tahoma,Arial,sans-serif;font-weight:700;letter-spacing:0}

/* ---- the still in the page, and the moving scene that takes its place once it has drawn ---- */
.ula-still{display:block;margin:0}
/* the still keeps its own proportions whatever image rules the page has for the place it sits in */
.ula-still.ula-still>img{display:block;width:100%;height:auto;max-width:none;max-height:none;aspect-ratio:auto 4/5;object-fit:fill;border:0;border-radius:0}
/* its room is kept before it has loaded: the compact picture is 4 by 5, the wide one 8 by 5, under the same queries the slots use */
@media(min-width:700px){.service-atlas__scene>.ula-still.ula-still>img{aspect-ratio:auto 8/5}}
@media(min-width:600px){.secondary-native-art[data-ula-relief]>.ula-still.ula-still>img,.e-hosted-video[data-ula-relief]>.ula-still.ula-still>img{aspect-ratio:auto 8/5}}
.ula-live>.ula-still{display:none}
/* until it has drawn, the moving scene takes no room and is not seen */
[data-ula-mounted]:not(.ula-live)>.ula-scene__art{position:absolute;width:120px;visibility:hidden;pointer-events:none}
.ula-scene__art{position:relative;width:100%;aspect-ratio:8/5;overflow:hidden}
.ula-scene--narrow .ula-scene__art{aspect-ratio:4/5}
.ula-scene__art>svg{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;min-width:0;min-height:0;display:block;overflow:hidden}

/* ---- practice pages: the picture above the three topic tabs ---- */
.service-atlas__scene.service-atlas__scene--motion{background:#0a1a4c;direction:ltr}
.service-atlas__scene--motion.ula-scene--narrow .ula-scene__art{max-width:440px;margin-inline:auto}
@media(max-width:699.98px){.service-atlas__scene--motion>.ula-still.ula-still>img{max-width:440px;margin-inline:auto}}
/* the drawing is pinned to its box; this also lifts the height limits written for the earlier, shorter picture */
.service-atlas__scene.service-atlas__scene--motion .ula-scene__art>svg{position:absolute;inset:0;width:100%;height:100%;max-height:none;min-width:0;min-height:0;display:block;overflow:hidden}

/* the bar under a picture that shows sample figures: the note only; nothing overlaps the artwork */
.ula-scene__bar{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 2px 0 12px;border-top:1px solid #93b9d430;background:#0a1a4c;direction:ltr}
html[dir=rtl] .ula-scene__bar{direction:rtl;padding:0 12px 0 2px}
.ula-scene__bar[hidden]{display:none}
.ula-scene__note{margin:6px 0;padding:3px 10px 3px 8px;display:flex;align-items:center;gap:6px;border:1px solid #f9e900;border-radius:99px;background:rgba(5,13,42,.78);color:#fff7a0;font:400 11px/1.5 Montserrat,'Segoe UI',Arial,sans-serif;letter-spacing:0;text-transform:none;pointer-events:none}
.ula-scene__note::before{content:"";width:6px;height:6px;border-radius:50%;background:#f9e900}
html[lang="fa"] .ula-scene__note{font-family:Vazirmatn,Tahoma,Arial,sans-serif;font-size:12px;direction:rtl}
@media(max-width:600px){.ula-scene__note{font-size:10px}html[lang="fa"] .ula-scene__note{font-size:11px}}
/* forced colours: the earlier picture was hidden; the finished coded picture is kept, in its own colours */
@media(forced-colors:active){.service-atlas__scene.service-atlas__scene--motion{display:block}.ula-scene__art>svg,.ula-still>img{forced-color-adjust:none}.ula-scene__note{forced-color-adjust:none}}

/* ---- home support section: the faint backdrop behind the text (keeps the earlier 30% strength and veil) ---- */
.heritage-budget-scene{position:absolute;inset:0}
.heritage-budget-scene>.ula-scene__art,.bk-budget-stage .bk-budget-scene>.ula-scene__art{position:absolute;inset:0;width:auto;aspect-ratio:auto;max-width:none;margin:0}
.heritage-budget-scene>.ula-still.ula-still>img,.bk-budget-stage .bk-budget-scene>.ula-still.ula-still>img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 100%}
.heritage-budget-scene>.ula-still>img{opacity:.3}
/* behind the heading the scene is only a faint backdrop, so its three words are not drawn there */
.heritage-budget-scene svg .lb{display:none}

/* ---- bankruptcy pages: the falling-objects stage ---- */
.bk-budget-stage .bk-budget-scene{position:absolute;inset:0}

/* ---- unwanted-calls pages: the picture beside "What relief may be available?" (added 2026-11-14) ----
   The picture is shown whole at its own proportions. */
.pd-aside .pd-art[data-ula-relief]{width:min(100%,320px);aspect-ratio:auto;border-radius:18px;overflow:hidden;background:#0a1a4c;box-shadow:0 0 0 1px #24386e,0 18px 40px -28px rgba(22,52,90,.6);direction:ltr}
.pd-art[data-ula-relief] .ula-scene__art{aspect-ratio:4/5;max-width:none;margin:0}
.pd-art[data-ula-relief] .ula-scene__art>svg{filter:none}
.pd-art[data-ula-relief]>.ula-still>img{filter:none}
@media(forced-colors:active){.pd-art[data-ula-relief]{forced-color-adjust:none}}
@media print{.pd-art[data-ula-relief]{box-shadow:none}}

/* ---- the fade between cycles (added 2026-11-14): the adapter sets --ula-veil on the picture's holder ---- */
.ula-scene__art>svg{opacity:var(--ula-veil,1)}
.heritage-budget-scene>.ula-scene__art>svg{opacity:calc(.3*var(--ula-veil,1))}
/* paper always gets the whole picture */
@media print{.ula-scene__art>svg{opacity:1!important}.heritage-budget-scene>.ula-scene__art>svg{opacity:.3!important}}

/* ---- Preventative Legal Care pages: the picture in the hero panel (added 2026-11-14) ----
   The caption under it stays. */
.secondary-native-art[data-ula-relief] .ula-scene__art{max-width:none;margin:0;direction:ltr}
.secondary-native-art[data-ula-relief] .ula-scene__bar{background:none;border-top:0}
.secondary-native-art[data-ula-relief] .secondary-native-art__caption{margin-top:4px}

/* ---- Preventative Legal Care pages: the network picture beside "The United Legal Approach" (added 2026-11-14) ---- */
.e-hosted-video[data-ula-relief]{border-radius:22px;overflow:hidden;background:#0a1a4c;box-shadow:0 22px 44px -34px #13375c99}
.e-hosted-video[data-ula-relief] .ula-scene__art{max-width:none;margin:0;direction:ltr}
@media print{.e-hosted-video[data-ula-relief]{box-shadow:none}}
