/*
 * Valuelytics Motion: what every module shares.
 *
 * Colors arrive as custom properties on the module root (--vl-bg, --vl-fg and
 * their rgb triples), set from the palette by the template. Type inherits the
 * theme: headings are real heading elements, so the theme's heading font
 * applies, and this plugin loads no font of its own.
 *
 * Every transition and animation sits inside
 * @media (prefers-reduced-motion: no-preference), the same rule the connector
 * enforces on layout CSS since v5.74.
 */
.vl-m {
  box-sizing: border-box;
  background: var(--vl-bg);
  color: var(--vl-fg);
}
/*
 * Unreleased: each module is its own stacking context, so the z-indexes
 * inside one (P1's 4, P12's doors at 3) stay inside it. That is what lets
 * the P16 call bar sit at z-index 1, above every module and under any
 * header or launcher with a z-index of its own, instead of 60.
 */
.vl-m {
  isolation: isolate;
}
/*
 * 0.8.2 (#576): a module's own text, its buttons and its labels are set in
 * the site's body font token, --vl-font-body, which the site tokens sheet
 * defines (hnors.com: Figtree; Rankin: the Elementor Kit's text font). Without
 * the token they inherit, as before. Inheriting alone was not enough: on
 * hnors.com the theme's body rule (Times) comes after the page-chrome sheet,
 * and Rankin's body is the system stack, not its Kit font. Display text keeps
 * --vl-display. A label a module sets in the body font names itself in its
 * own stylesheet (P13: .vl-p13__label), not by a class pattern here, so a
 * label meant for the display font (P1's) is never caught.
 *
 * 0.8.4: the button selectors are raised, so an Elementor Kit's button rule
 * cannot out-rank them. The Kit's global button style is written as
 * ".elementor-kit-N button" (0,1,1), which tied with ".vl-m button" and won
 * whenever it loaded later. ".vl-m.vl-m button" is (0,2,1), and
 * ".vl-m .vl-btn.vl-btn" (0,3,0) beats a Kit link rule on a link button. A
 * repeated class matches the same elements; it only raises the weight.
 */
/*
 * motion-next: without the token, the Elementor Kit's text font
 * (--e-global-typography-text-font-family, declared on the body's Kit class),
 * and only then the inherited font. Rankin's body inherits the system stack
 * while its Kit names a real font, so inheriting first put module text in
 * the system stack and failed screenshot_concepts' module-font check.
 * --vl-font-display is the display token, falling back to --vl-display (the
 * theme heading font or the Kit primary, set inline on the root).
 */
.vl-m,
.vl-m .vl-btn.vl-btn,
.vl-m.vl-m button {
  font-family: var(--vl-font-body, var(--e-global-typography-text-font-family, inherit));
}
.vl-m {
  --vl-f-display: var(--vl-font-display, var(--vl-display, inherit));
}
.vl-m *,
.vl-m *::before,
.vl-m *::after {
  box-sizing: inherit;
}
.vl-m img {
  display: block;
  max-width: 100%;
  height: auto;
}
.vl-m .vl-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.vl-m .vl-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.vl-m .vl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--vl-fg);
  border-radius: var(--vl-radius-control, 999px);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.vl-m .vl-btn--solid {
  background: var(--vl-fg);
  color: var(--vl-bg);
}
.vl-m .vl-btn--line {
  background: transparent;
  color: var(--vl-fg);
}
/* The theme's own buttons invert on hover; these do the same, with no lift. */
.vl-m .vl-btn--solid:hover,
.vl-m .vl-btn--solid:focus-visible {
  background: transparent;
  color: var(--vl-fg);
}
.vl-m .vl-btn--line:hover,
.vl-m .vl-btn--line:focus-visible {
  background: var(--vl-fg);
  color: var(--vl-bg);
}
/* motion-next: the accent (the site's --vl-accent token unless a module sets
   --vl-acc), and paper on a photo. Hover inverts, as above: no lift. */
.vl-m .vl-btn--accent {
  border-color: var(--vl-acc, var(--vl-accent, var(--vl-fg)));
  background: var(--vl-acc, var(--vl-accent, var(--vl-fg)));
  color: var(--vl-acc-ink, #ffffff);
}
.vl-m .vl-btn--accent:hover,
.vl-m .vl-btn--accent:focus-visible {
  background: transparent;
  color: var(--vl-fg);
}
.vl-m .vl-btn--paper {
  border-color: var(--vl-paper-c, #ffffff);
  background: var(--vl-paper-c, #ffffff);
  color: var(--vl-ink-c, #121212);
}
.vl-m .vl-btn--paper:hover,
.vl-m .vl-btn--paper:focus-visible {
  background: transparent;
  color: var(--vl-paper-c, #ffffff);
}
.vl-m .vl-btn:focus-visible {
  outline: 2px solid var(--vl-fg);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .vl-m .vl-btn {
    transition: background-color 0.2s, color 0.2s;
  }
}
