/* Loonis Sites additions on top of the template stylesheet */

/* hide animated elements until the motion kit runs (removed instantly if it can't) */
html.lx-motion [animate="fade-up"],
html.lx-motion [animate="heading-reveal"],
html.lx-motion [animate="stagger"],
html.lx-motion [animate="image-reveal"],
html.lx-motion [animate="rule-draw"],
html.lx-motion [animate="bar-grow"],
html.lx-motion [animate="bar-segments"] { opacity: 0; }

/* card hover zoom (1.04, 0.6s), for templates without the original's interactions (html.lx-ix: js/ix.js plays them) */
html:not(.lx-ix) [class*="_card"] img, html:not(.lx-ix) .card-media img { transition: transform var(--motion-slow) var(--ease-1); }
html:not(.lx-ix) [class*="_card"]:hover img:not([class*="icon"]), html:not(.lx-ix) .card-media:hover img { transform: scale(1.04); }
.card-media { overflow: hidden; }

/* lightbox */
.lx-lightbox { position: fixed; inset: 0; z-index: 9999; background: var(--tone-overlay-92); display: flex; align-items: center; justify-content: center; }
.lx-lightbox img { max-width: 86vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius-8); }
.lx-lightbox button { position: absolute; background: none; border: 0; color: var(--role-panel); font-size: calc(var(--size-2-5rem) * var(--scale-headings)); cursor: pointer; padding: var(--spacing-1rem); line-height: var(--leading-100); }
.lx-lb-close { top: 1rem; right: 1rem; }
.lx-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lx-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* tabs: Webflow hides inactive panes */
.w-tab-pane { display: none; }
.w-tab-pane.w--tab-active { display: block; }

/* single-page lists: Webflow hides pagination when there is nothing to page */
.w-pagination-wrapper { display: none; }


/* menu links the converter added to templates that only had a demo "Pages" dropdown */
.lx-nav-added { white-space: nowrap; }

/* ---- lx-icons: one-colour logo and icons follow the role colours (written by _tools/design-system/icons.mjs) ----
   The template's own one-colour SVG files are drawn as a mask filled with a role colour; the file
   itself is moved out of view. This runs in every theme except Original, and when the Style panel
   has changed a colour (<html data-colours="custom">). In Original the files show as drawn.
   The selectors match the template's own file names only: an owner logo or a replaced image has
   another src, so it shows exactly as uploaded and is never recoloured. */
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Building-office.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Calendar-2.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Calendar.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/CaseWell-Logo.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Chat-badge.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Cube.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Cup.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Hemisphere-Dash.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Leaves.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Maya-Chen.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Money-paper.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Right---4.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Right4-white.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Right4.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Smart_phone.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Sphere-glob.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Target.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Target_1.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/email-notification.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/email_1.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/instagram.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/like-dislike.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/link.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/linkedin.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-1.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-2.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-3.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-white-1.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-white-2.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-white-3.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/menu.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/pages-menu-arrow-down-2.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/pages-menu-email.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/pages-menu-menu-icon1.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/pages-menu-menu-icon2.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/slider-left.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/slider-right.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/twitter.svg"],
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/x_logo.svg"] {
  object-position: -99999px 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-origin: content-box; mask-origin: content-box;
  -webkit-mask-clip: content-box; mask-clip: content-box;
  background-color: var(--role-ink);
  background-clip: content-box;
}
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Building-office.svg"] { -webkit-mask-image: url(/_t/casewell/images/Building-office.svg); mask-image: url(/_t/casewell/images/Building-office.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Calendar-2.svg"] { -webkit-mask-image: url(/_t/casewell/images/Calendar-2.svg); mask-image: url(/_t/casewell/images/Calendar-2.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Calendar.svg"] { -webkit-mask-image: url(/_t/casewell/images/Calendar.svg); mask-image: url(/_t/casewell/images/Calendar.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/CaseWell-Logo.svg"] { -webkit-mask-image: url(/_t/casewell/images/CaseWell-Logo.svg); mask-image: url(/_t/casewell/images/CaseWell-Logo.svg); background-color: var(--role-accent); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Chat-badge.svg"] { -webkit-mask-image: url(/_t/casewell/images/Chat-badge.svg); mask-image: url(/_t/casewell/images/Chat-badge.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Cube.svg"] { -webkit-mask-image: url(/_t/casewell/images/Cube.svg); mask-image: url(/_t/casewell/images/Cube.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Cup.svg"] { -webkit-mask-image: url(/_t/casewell/images/Cup.svg); mask-image: url(/_t/casewell/images/Cup.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Hemisphere-Dash.svg"] { -webkit-mask-image: url(/_t/casewell/images/Hemisphere-Dash.svg); mask-image: url(/_t/casewell/images/Hemisphere-Dash.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Leaves.svg"] { -webkit-mask-image: url(/_t/casewell/images/Leaves.svg); mask-image: url(/_t/casewell/images/Leaves.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Maya-Chen.svg"] { -webkit-mask-image: url(/_t/casewell/images/Maya-Chen.svg); mask-image: url(/_t/casewell/images/Maya-Chen.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Money-paper.svg"] { -webkit-mask-image: url(/_t/casewell/images/Money-paper.svg); mask-image: url(/_t/casewell/images/Money-paper.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Right---4.svg"] { -webkit-mask-image: url(/_t/casewell/images/Right---4.svg); mask-image: url(/_t/casewell/images/Right---4.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Right4-white.svg"] { -webkit-mask-image: url(/_t/casewell/images/Right4-white.svg); mask-image: url(/_t/casewell/images/Right4-white.svg); background-color: var(--role-page); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Right4.svg"] { -webkit-mask-image: url(/_t/casewell/images/Right4.svg); mask-image: url(/_t/casewell/images/Right4.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Smart_phone.svg"] { -webkit-mask-image: url(/_t/casewell/images/Smart_phone.svg); mask-image: url(/_t/casewell/images/Smart_phone.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Sphere-glob.svg"] { -webkit-mask-image: url(/_t/casewell/images/Sphere-glob.svg); mask-image: url(/_t/casewell/images/Sphere-glob.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Target.svg"] { -webkit-mask-image: url(/_t/casewell/images/Target.svg); mask-image: url(/_t/casewell/images/Target.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/Target_1.svg"] { -webkit-mask-image: url(/_t/casewell/images/Target_1.svg); mask-image: url(/_t/casewell/images/Target_1.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/email-notification.svg"] { -webkit-mask-image: url(/_t/casewell/images/email-notification.svg); mask-image: url(/_t/casewell/images/email-notification.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/email_1.svg"] { -webkit-mask-image: url(/_t/casewell/images/email_1.svg); mask-image: url(/_t/casewell/images/email_1.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/instagram.svg"] { -webkit-mask-image: url(/_t/casewell/images/instagram.svg); mask-image: url(/_t/casewell/images/instagram.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/like-dislike.svg"] { -webkit-mask-image: url(/_t/casewell/images/like-dislike.svg); mask-image: url(/_t/casewell/images/like-dislike.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/link.svg"] { -webkit-mask-image: url(/_t/casewell/images/link.svg); mask-image: url(/_t/casewell/images/link.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/linkedin.svg"] { -webkit-mask-image: url(/_t/casewell/images/linkedin.svg); mask-image: url(/_t/casewell/images/linkedin.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-1.svg"] { -webkit-mask-image: url(/_t/casewell/images/logo-1.svg); mask-image: url(/_t/casewell/images/logo-1.svg); background-color: var(--role-ink-muted); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-2.svg"] { -webkit-mask-image: url(/_t/casewell/images/logo-2.svg); mask-image: url(/_t/casewell/images/logo-2.svg); background-color: var(--role-ink-muted); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-3.svg"] { -webkit-mask-image: url(/_t/casewell/images/logo-3.svg); mask-image: url(/_t/casewell/images/logo-3.svg); background-color: var(--role-ink-muted); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-white-1.svg"] { -webkit-mask-image: url(/_t/casewell/images/logo-white-1.svg); mask-image: url(/_t/casewell/images/logo-white-1.svg); background-color: var(--role-page); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-white-2.svg"] { -webkit-mask-image: url(/_t/casewell/images/logo-white-2.svg); mask-image: url(/_t/casewell/images/logo-white-2.svg); background-color: var(--role-page); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/logo-white-3.svg"] { -webkit-mask-image: url(/_t/casewell/images/logo-white-3.svg); mask-image: url(/_t/casewell/images/logo-white-3.svg); background-color: var(--role-page); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/menu.svg"] { -webkit-mask-image: url(/_t/casewell/images/menu.svg); mask-image: url(/_t/casewell/images/menu.svg); background-color: var(--role-ink-deep); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/pages-menu-arrow-down-2.svg"] { -webkit-mask-image: url(/_t/casewell/images/pages-menu-arrow-down-2.svg); mask-image: url(/_t/casewell/images/pages-menu-arrow-down-2.svg); background-color: var(--role-ink-soft); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/pages-menu-email.svg"] { -webkit-mask-image: url(/_t/casewell/images/pages-menu-email.svg); mask-image: url(/_t/casewell/images/pages-menu-email.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/pages-menu-menu-icon1.svg"] { -webkit-mask-image: url(/_t/casewell/images/pages-menu-menu-icon1.svg); mask-image: url(/_t/casewell/images/pages-menu-menu-icon1.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/pages-menu-menu-icon2.svg"] { -webkit-mask-image: url(/_t/casewell/images/pages-menu-menu-icon2.svg); mask-image: url(/_t/casewell/images/pages-menu-menu-icon2.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/slider-left.svg"] { -webkit-mask-image: url(/_t/casewell/images/slider-left.svg); mask-image: url(/_t/casewell/images/slider-left.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/slider-right.svg"] { -webkit-mask-image: url(/_t/casewell/images/slider-right.svg); mask-image: url(/_t/casewell/images/slider-right.svg); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/twitter.svg"] { -webkit-mask-image: url(/_t/casewell/images/twitter.svg); mask-image: url(/_t/casewell/images/twitter.svg); background-color: var(--role-ink-black); }
:is(html[data-theme]:not([data-theme="original"]), html[data-colours="custom"]) img[src$="/_t/casewell/images/x_logo.svg"] { -webkit-mask-image: url(/_t/casewell/images/x_logo.svg); mask-image: url(/_t/casewell/images/x_logo.svg); }
/* logos and icons drawn in several greys: in dark themes they are inverted so they stay readable */
html[data-theme="night-session"] img[src$="/_t/casewell/cms/6a2135b4550080786ac7f7eb_Areas-icon1-13265a.svg"],
html[data-theme="inverted"] img[src$="/_t/casewell/cms/6a2135b4550080786ac7f7eb_Areas-icon1-13265a.svg"],
html[data-theme="night-session"] img[src$="/_t/casewell/cms/6a213649b75fd2c9d1802dad_Areas-icon2-81b603.svg"],
html[data-theme="inverted"] img[src$="/_t/casewell/cms/6a213649b75fd2c9d1802dad_Areas-icon2-81b603.svg"],
html[data-theme="night-session"] img[src$="/_t/casewell/cms/6a2136d9c7ab9fa1461e35cb_Areas-icon4-4ba69b.svg"],
html[data-theme="inverted"] img[src$="/_t/casewell/cms/6a2136d9c7ab9fa1461e35cb_Areas-icon4-4ba69b.svg"],
html[data-theme="night-session"] img[src$="/_t/casewell/images/quote.svg"],
html[data-theme="inverted"] img[src$="/_t/casewell/images/quote.svg"] { filter: invert(1); }
/* ---- end lx-icons ---- */
