/* ============================================================================
 * CEXUM child theme — Elementor brand bridge (interior pages)
 *
 * PROBLEM THIS SOLVES
 * -------------------
 * Interior pages (page.php -> the_content() -> Elementor) render Elementor's
 * own widget markup (`.elementor-widget-*`). The child theme paints a DARK
 * azul-noche surface, but Elementor widgets ship LIGHT-theme default text
 * colors (dark text), so body copy, button labels and icon-box text render
 * (near-)invisible on the dark band. The theme's dark-brand typography lives
 * under `.cx-prose` selectors, which never match Elementor's `.elementor-*`
 * DOM. This stylesheet bridges that gap: it restyles Elementor's own markup
 * to the CEXUM dark brand, reusing the design tokens from style.css
 * (--cx-* / hsl(var(--cx-*))). It is a CLEAN BASELINE, not a bespoke redesign —
 * text visible, buttons + icons legible, icon-boxes on-brand, spacing sane.
 *
 * SCOPE — interior pages only, never the home page
 * ------------------------------------------------
 * Every rule is scoped under `.cx-page-body .elementor`. Only page.php emits
 * `.cx-page-body`; the home page is rendered by front-page.php (custom .cx-*
 * markup, ZERO Elementor widgets, body.home) and is therefore untouched. The
 * header/footer chrome lives outside `.cx-page-body`, so it is untouched too.
 * ONE deliberate exception (2026-09-25): the button recipe of §3 is also
 * applied to `.elementor-location-single` / `.elementor-location-archive`,
 * the Theme Builder content locations (404, blog single, archive), whose
 * native Button widgets would otherwise keep Elementor's light defaults.
 * MEASURED 2026-11-03 (MKT-WP-REDESIGN-TYPE-RAMP-KIT): the paragraph above is
 * out of date: the home is now an Elementor page inside `.cx-page-body` too,
 * so every rule here also reaches it. Since MKT-WP-HOME-CSS-BEATS-WIDGETS
 * (same day) this bridge styles the home exactly like any other page:
 * cexum-home-elementor.css only releases page.php's wrappers there.
 *
 * Tokens reused from style.css:
 *   --cx-on-dark / --cx-on-dark-muted / --cx-on-dark-subtle  (text on dark)
 *   --cx-accent-hsl (turquesa #18C9D7)  --cx-primary-hsl (azul corp. #1D5FFF)
 *   --cx-gradient-action / --cx-gradient-soft / --cx-eyebrow-on-dark  (brand)
 *   --cx-glass-tint / --cx-line / --cx-surface-2            (glass surfaces)
 *   --cx-radius* / --cx-shadow-card / --cx-shadow-lift      (depth; no halos)
 * ========================================================================== */

/* ----------------------------------------------------------------------------
 * SPECIFICITY CONTRACT of the type and colour rules below (§0, §1, §2, §4)
 * (MKT-WP-BRIDGE-BEATS-WIDGET-STYLE, 2026-11-03)
 *
 * What an editor sets in a widget's Style tab must win over this bridge, and
 * this bridge must win over the widget's DEFAULT style, whatever order the
 * sheets print in. Elementor prints, per page (css/post-NN.css):
 *   widget default  .elementor-widget-heading .elementor-heading-title     0,2,0
 *                   .elementor-widget-text-editor                          0,1,0
 *   widget setting  .elementor-NN .elementor-element.elementor-element-ID
 *                     .elementor-heading-title / .elementor-icon-box-title 0,4,0
 *                   (text editor: on the widget itself)                    0,3,0
 * MEASURED 2026-11-03 on lane drafts (heading, icon box, eyebrow, H3 and a bare
 * heading with their own size and weight): every own setting lost, because
 * these rules were 0,4,0-0,4,1 and print later. They now sit strictly
 * between the two: `.cx-page-body` goes inside :where() (0 specificity, same
 * scope), so headings are 0,3,0 (0,3,1 for the h2/h3 role rules, which must
 * still beat the size-class rules), icon-box titles 0,3,1 (§2), accordion
 * titles 0,3,0 (§4), text-editor rules 0,2,0, and every :not() list is
 * wrapped in :where(). Inner <p>/<li> of a
 * text editor INHERIT the widget's colour and line-height instead of setting
 * their own, so a colour set on the widget reaches the text. Keep it that
 * way: a new type/colour rule here takes the same form.
 *
 * THE WHOLE SHEET, not only type and colour (MKT-WP-BRIDGE-CLASS-SWEEP,
 * 2026-11-03). Four page lanes measured the same defect again in the rules
 * this contract had not reached yet: the link colour of a Text Editor, the
 * 20px under every widget, the glass card on every Icon Box and the forced
 * icon and Icon List colours. The floors Elementor prints for a widget's OWN
 * setting (measured in css/post-NN.css of a probe page):
 *   on the widget (margin, Text Editor colour, divider colour)        0,3,0
 *   on a bare tag in it (`{{WRAPPER}} a`, the Text Editor link)       0,3,1
 *   on an inner part (title, icon size, list text, button, accordion)  0,4,0
 *   on a tag in an inner part (`.elementor-icon-list-icon svg`)       0,4,1
 *   icon colour (`{{WRAPPER}}.elementor-view-default .elementor-icon`) 0,5,0
 * Every rule here that reaches a widget sits strictly BELOW that floor and,
 * where Elementor has a default for the same property, strictly ABOVE it.
 * Two more shapes complete the contract:
 *   - INHERITANCE: a colour set on a child (a <strong>, an <svg>) stops the
 *     widget's colour, set higher up, from reaching it whatever the
 *     specificity. Children inherit, or derive their emphasis from the
 *     inherited colour (§1), and an icon's colour goes on `.elementor-icon`,
 *     never on its svg/<i> alone (§2, §2b).
 *   - PROPERTIES THE WIDGET NEVER WRITES (a card background on the icon box
 *     wrapper, a fixed icon width, the spacing between widgets): no
 *     specificity makes them yield, so they are scoped by STRUCTURE to the
 *     old generated pages (sections and columns: `.elementor-widget-wrap >`),
 *     never to the containers the redesign and marketing build with.
 * `scripts/check_theme_widget_specificity.py` (pre-commit) fails on a rule
 * of any theme sheet above its floor. The few that must win are marked
 * `(c) KEPT:` here, with the reason, and listed in
 * scripts/theme_widget_specificity_exceptions.json.
 * -------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------------
 * 0. Headings — light/brand text, sensible scale
 * -------------------------------------------------------------------------- */
:where(.cx-page-body) .elementor .elementor-widget-heading .elementor-heading-title {
  color: hsl(var(--cx-on-dark));
  letter-spacing: -0.018em;
  line-height: 1.2;
}
/* Default Elementor size ramp -> CEXUM scale. Since the 2026-11 redesign
 * (MKT-WP-REDESIGN-TYPE-RAMP-KIT) the roles of the ramp read the Elementor
 * Global Fonts of the kit, with the --cx-* tokens as fallback (style.css), so
 * what an editor sets in Site Settings is what renders:
 *   size-small            -> "Eyebrow / Label" (kit `accent`)   13px 700 .14em
 *   h2 + default/large/xl -> "Section Heading" (kit `secondary`) 44 / 32 / 28px
 *   h3 + default/large/xl -> "Card Title" (kit `cxcardt`)       22 / 20px 700
 *   xxl                   -> "Display / H1" (kit `primary`)     64 / 44 / 36px
 * Other tags with a size class (a <p> figure, an h4) keep the clamp below. */
:where(.cx-page-body) .elementor .elementor-heading-title.elementor-size-small {
  font-size: var(--e-global-typography-accent-font-size, var(--cx-fs-eyebrow));
  font-weight: var(--e-global-typography-accent-font-weight, var(--cx-weight-eyebrow));
  letter-spacing: var(--e-global-typography-accent-letter-spacing, var(--cx-tracking-eyebrow));
  line-height: var(--e-global-typography-accent-line-height, var(--cx-lh-eyebrow));
  text-transform: var(--e-global-typography-accent-text-transform, uppercase);
  /* solid eyebrow, matching .cx-section__eyebrow (no gradient text) */
  color: var(--cx-eyebrow-on-dark);
}
:where(.cx-page-body) .elementor .elementor-heading-title.elementor-size-default {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
/* Page H1 — the Elementor Global Font "Display / H1" (kit `primary`) with the
 * --cx-* Display tokens as fallback, so the kit set in Site Settings is what
 * renders (redesign 2026-11: 64 / 44 / 36px). */
:where(.cx-page-body) .elementor h1.elementor-heading-title.elementor-size-xxl,
:where(.cx-page-body) .elementor .elementor-heading-title.elementor-size-xxl {
  font-size: var(--e-global-typography-primary-font-size, var(--cx-fs-display));
  line-height: var(--e-global-typography-primary-line-height, var(--cx-lh-display));
  font-weight: var(--e-global-typography-primary-font-weight, var(--cx-weight-display));
  letter-spacing: var(--e-global-typography-primary-letter-spacing, var(--cx-tracking-display));
}
:where(.cx-page-body) .elementor .elementor-heading-title.elementor-size-xl {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 700;
}
:where(.cx-page-body) .elementor .elementor-heading-title.elementor-size-large {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 700;
}
/* Defensive: a heading widget with NO `elementor-size-*` class is bound by
 * Elementor's per-page CSS to the PRIMARY (hero) global typography token, which
 * renders giant. Today every generated heading carries a size class, but pin the
 * bare case to the section-default scale so a future generated heading can never
 * render "random"/oversized. (`:not()` keeps explicit size classes untouched.) */
:where(.cx-page-body) .elementor .elementor-widget-heading
  .elementor-heading-title:where(:not(.elementor-size-small, .elementor-size-default, .elementor-size-large, .elementor-size-xl, .elementor-size-xxl)) {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
/* H2 and H3 headings of the content read the kit (see the table above). One
 * element more specific (0,3,1) than the size-class rules (0,3,0), so the role
 * wins whatever order an optimiser prints the sheets in, and still below a
 * widget's own setting (0,4,0). */
:where(.cx-page-body) .elementor h2.elementor-heading-title:is(.elementor-size-default, .elementor-size-large, .elementor-size-xl),
:where(.cx-page-body) .elementor .elementor-widget-heading
  h2.elementor-heading-title:where(:not(.elementor-size-small, .elementor-size-default, .elementor-size-large, .elementor-size-xl, .elementor-size-xxl)) {
  font-size: var(--e-global-typography-secondary-font-size, var(--cx-fs-h2));
  line-height: var(--e-global-typography-secondary-line-height, var(--cx-lh-h2));
  font-weight: var(--e-global-typography-secondary-font-weight, var(--cx-weight-h2));
  letter-spacing: var(--e-global-typography-secondary-letter-spacing, var(--cx-tracking-h2));
}
:where(.cx-page-body) .elementor h3.elementor-heading-title:is(.elementor-size-default, .elementor-size-large, .elementor-size-xl),
:where(.cx-page-body) .elementor .elementor-widget-heading
  h3.elementor-heading-title:where(:not(.elementor-size-small, .elementor-size-default, .elementor-size-large, .elementor-size-xl, .elementor-size-xxl)) {
  font-size: var(--e-global-typography-cxcardt-font-size, var(--cx-fs-h3));
  line-height: var(--e-global-typography-cxcardt-line-height, var(--cx-lh-h3));
  font-weight: var(--e-global-typography-cxcardt-font-weight, var(--cx-weight-h3));
  letter-spacing: var(--e-global-typography-cxcardt-letter-spacing, var(--cx-tracking-card));
}

/* ----------------------------------------------------------------------------
 * 1. Text editor / rich content — readable light copy on dark
 * -------------------------------------------------------------------------- */
/* On the widget (0,2,0): above Elementor's widget default (0,1,0), below the
 * colour and typography set on the widget (0,3,0). The paragraphs and list
 * items inherit, so that setting reaches the text. */
:where(.cx-page-body) .elementor .elementor-widget-text-editor {
  color: hsl(var(--cx-on-dark-muted));
  line-height: 1.7;
}
:where(.cx-page-body .elementor) .elementor-widget-text-editor :is(p, li) {
  color: inherit;
  line-height: inherit;
}
/* Lead = Global Font "Lead Paragraph" (kit `cxlead`, --cx-* fallback): 20 / 18px.
 * The page generator marks the lead of every interior page with a stable id:
 * the hero sub `{slug}-hero-sub` and the sub-pages intro `{slug}-subpages-lede`
 * (plugins/cexum-content-bootstrap/includes/elementor-generator.php). `$=`
 * matches the EN ids too, which carry an `en:` prefix. 0,2,0 like the rule
 * above, after it in this file, so the lead's line height wins; the paragraph
 * inherits both values. */
:where(.cx-page-body .elementor) .elementor-widget-text-editor:is([id$="-hero-sub"], [id$="-subpages-lede"]) {
  font-size: var(--e-global-typography-cxlead-font-size, var(--cx-fs-lead));
  line-height: var(--e-global-typography-cxlead-line-height, var(--cx-lh-lead));
}
/* EMPHASIS DERIVES FROM THE WIDGET'S COLOUR (MKT-WP-BRIDGE-CLASS-SWEEP).
 * Bold text, headings inside the editor, table heads and quotes used to be
 * painted a fixed blanco hielo. That colour, set on the child, stopped the
 * widget's own text colour from reaching them: a Text Editor set to dark text
 * on a «Banda clara» kept its bold words white on white. They now take the
 * widget's colour (inherited) pushed AWAY from the middle of the lightness
 * scale and toward neutral: on the default muted text of a dark band
 * («Texto atenuado», L 0.857) it lands on blanco hielo (L 0.975, the clamp's
 * ceiling, never brighter unless the text already is); on dark text over a
 * light band it gets darker (floor 0.2). Emphasis always gains contrast and
 * the widget's colour always reaches it. `color: inherit` first is the
 * fallback of a browser without relative colours. 0,1,1-0,1,2. */
:where(.cx-page-body .elementor) .elementor-widget-text-editor :is(h1, h2, h3, h4, h5, h6, strong, b),
:where(.cx-page-body .elementor) .elementor-widget-text-editor thead th,
:where(.cx-page-body .elementor) .elementor-widget-text-editor blockquote {
  color: inherit;
  color: oklch(from currentColor clamp(min(l, 0.2), calc(l + (l - 0.5) * 0.33), max(l, 0.975)) calc(c * 0.2) h);
}
/* Link: 0,2,1, above the kit (`.elementor-kit-N a`, 0,1,1) and the prose rule
 * (`.cx-prose a`, 0,1,1), below the widget's «Link colour» (`{{WRAPPER}} a`,
 * 0,3,1). The hover is 0,3,0 (an attribute, not a tag): above the kit's
 * hover (0,2,1) and BELOW the widget's plain link colour (0,3,1), so a link
 * colour set on the widget stays on hover too unless the widget sets its own
 * hover colour (0,4,1). */
:where(.cx-page-body .elementor) .elementor-widget-text-editor a[href] {
  color: hsl(var(--cx-accent-hsl));
  text-decoration: underline;
  text-underline-offset: 2px;
}
:where(.cx-page-body .elementor) .elementor-widget-text-editor [href]:hover {
  color: hsl(var(--cx-accent-hsl) / 0.82);
}
:where(.cx-page-body .elementor) .elementor-widget-text-editor :is(ul, ol) li::marker {
  color: hsl(var(--cx-accent-hsl));
}
/* Sizes RELATIVE to the widget's (MKT-WP-PROSE-TAGS-CUT-WIDGET-INHERITANCE): the
 * native prose ramp is a 15px table and an 18px quote on 17px text; in em the
 * same ratio follows the size an editor sets on the Text Editor (0.9375 / 1.0625
 * and 1.125 / 1.0625). The quote's line height is the widget's. */
:where(.cx-page-body .elementor) .elementor-widget-text-editor table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8824em;
}
/* Cells inherit the widget's colour (the old fixed muted colour was the
 * widget default anyway, and it blocked a colour set on the widget). */
:where(.cx-page-body .elementor) .elementor-widget-text-editor :is(th, td) {
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid hsl(var(--cx-line) / 0.4);
}
:where(.cx-page-body .elementor) .elementor-widget-text-editor thead th {
  background: hsl(var(--cx-surface-1) / 0.6);
  font-weight: 600;
}
:where(.cx-page-body .elementor) .elementor-widget-text-editor blockquote {
  font-size: 1.0588em;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid hsl(var(--cx-accent-hsl));
  background: hsl(var(--cx-accent-hsl) / 0.08);
  border-radius: 0 var(--cx-radius) var(--cx-radius) 0;
}

/* ----------------------------------------------------------------------------
 * 2. Icon-box — title light, description muted, accent icon; glass card ONLY
 *    on the old generated pages
 *
 * THE CARD IS THE CONTAINER'S, NOT THE WIDGET'S (MKT-WP-BRIDGE-CLASS-SWEEP).
 * The glass card (padding, background, border, shadow, lift) used to be
 * painted on EVERY icon box, so an icon box inside a card of the «Rejilla de
 * tarjetas» pattern (1715) or a white «Banda clara» card came out as a card
 * inside a card, and its body text fell to 3.19:1 on the composited glass
 * (measured on /products/). The Icon Box widget has no control for that box,
 * so no specificity makes it yield: it is scoped by STRUCTURE to icon boxes
 * that sit directly in a legacy COLUMN (`.elementor-widget-wrap >`), which is
 * how the generated pages not yet redesigned use it as their only card
 * (/security/, /pricing/, /about/...). The redesign and marketing build with
 * containers (`.e-con`): there the card is the container's own background,
 * border and shadow, set in its Style tab. 0,1,0: nothing in Elementor
 * competes for those properties.
 * -------------------------------------------------------------------------- */
:where(.cx-page-body .elementor .elementor-widget-wrap > .elementor-widget-icon-box) .elementor-icon-box-wrapper {
  /* subtle glass card like the portal/home feature cards */
  padding: 1.5rem;
  background: hsl(var(--cx-glass-tint) / 0.45);
  border: 1px solid hsl(var(--cx-line) / 0.55);
  border-radius: var(--cx-radius);
  box-shadow: var(--cx-shadow-card);
  height: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
:where(.cx-page-body .elementor .elementor-widget-wrap > .elementor-widget-icon-box:hover) .elementor-icon-box-wrapper {
  border-color: hsl(var(--cx-accent-hsl) / 0.45);
  box-shadow: var(--cx-shadow-card), var(--cx-shadow-lift);
  transform: translateY(-2px);
}
/* Card title = Global Font "Card Title" (kit `cxcardt`, --cx-* fallback):
 * 22 / 20px 700, sentence case. The text-transform also stops the article
 * rule `.cx-prose h4` (uppercase, tracked) leaking into icon boxes whose title
 * tag is h4 (MKT-WP-REDESIGN-TYPE-RAMP-KIT). */
/* `div.` (0,3,1 / 0,3,2): Elementor's default hover colour of the title is
 * `.elementor-widget-icon-box:has(:hover) .elementor-icon-box-title` (0,3,0),
 * which must not win; the widget's own colour (0,4,0 / 0,4,1) still does. */
:where(.cx-page-body) .elementor div.elementor-widget-icon-box .elementor-icon-box-title,
:where(.cx-page-body) .elementor div.elementor-widget-icon-box .elementor-icon-box-title a {
  color: hsl(var(--cx-on-dark));
  font-weight: var(--e-global-typography-cxcardt-font-weight, var(--cx-weight-h3));
}
:where(.cx-page-body) .elementor div.elementor-widget-icon-box .elementor-icon-box-title {
  font-size: var(--e-global-typography-cxcardt-font-size, var(--cx-fs-h3));
  line-height: var(--e-global-typography-cxcardt-line-height, var(--cx-lh-h3));
  letter-spacing: var(--e-global-typography-cxcardt-letter-spacing, var(--cx-tracking-card));
  text-transform: var(--e-global-typography-cxcardt-text-transform, none);
}
/* A LINKED card title (icon box with a Link: /products/, /pricing/, ...) is the
 * card's heading, not a run-of-text link: no resting underline (the prose rule
 * '.cx-prose a{text-decoration:underline}' leaked into it, launch review
 * 2026-09-25). Its states are never colour alone (Design Law 2): hover and
 * keyboard focus draw the underline back, focus adds the ring, and the card's
 * own border lights up (§2 hover rule above, and :focus-within below). */
/* 0,2,1 above `.cx-prose a` (0,1,1); hover/focus 0,3,1, below a tag in an
 * inner part set on the widget (0,4,1). */
:where(.cx-page-body .elementor) .elementor-widget-icon-box .elementor-icon-box-title a {
  text-decoration: none;
}
:where(.cx-page-body .elementor) .elementor-widget-icon-box .elementor-icon-box-title a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
:where(.cx-page-body .elementor) .elementor-widget-icon-box .elementor-icon-box-title a:focus-visible {
  outline: 2px solid hsl(var(--cx-accent-hsl));
  outline-offset: 2px;
}
:where(.cx-page-body .elementor .elementor-widget-wrap > .elementor-widget-icon-box:focus-within) .elementor-icon-box-wrapper {
  border-color: hsl(var(--cx-accent-hsl) / 0.45);
  box-shadow: var(--cx-shadow-card), var(--cx-shadow-lift);
}
:where(.cx-page-body) .elementor .elementor-widget-icon-box .elementor-icon-box-description {
  color: hsl(var(--cx-on-dark-muted));
  line-height: 1.6;
}
/* The icon's COLOUR, on every icon box: accent turquoise by default. It goes
 * on `.elementor-icon` (0,4,0: above Elementor's default, 0,3,0, below the
 * widget's own colour, `{{WRAPPER}}.elementor-view-* .elementor-icon`, 0,5,0)
 * and its svg (0,4,1, above the default's 0,3,1, below the widget's 0,5,1).
 * The old rule painted the svg and the <i> themselves, so the glyph colour
 * set on the widget never reached them: turquoise on turquoise (measured on
 * the custody draft 1763). */
:where(.cx-page-body) .elementor .elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon {
  color: hsl(var(--cx-accent-hsl));
  fill: hsl(var(--cx-accent-hsl));
}
:where(.cx-page-body) .elementor .elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon svg {
  fill: currentColor;
}
/* The soft gradient CHIP, 52 x 52, on the old generated pages only: a fixed
 * size and a background image are properties the widget never overrides
 * (its icon size is a font-size, its stacked view a background-color), so on
 * an icon box from the editor they would always win (a 44px tile computed
 * 52 x 52, measured on 1763). 0,3,1: above Elementor's `.elementor-icon`
 * (0,1,0) and its default icon-box border colour (`.elementor-widget-icon-box
 * .elementor-view-default .elementor-icon`, 0,3,0), below the widget's own
 * size and padding (0,4,0). */
:where(.cx-page-body .elementor .elementor-widget-wrap > .elementor-widget-icon-box) .elementor-icon-box-wrapper .elementor-icon-box-icon :is(a, span).elementor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 24px;
  border-radius: var(--cx-radius);
  background: var(--cx-gradient-soft);
  border: 1px solid hsl(var(--cx-accent-hsl) / 0.28);
}

/* ----------------------------------------------------------------------------
 * 2b. Standalone icon / icon-list widgets — accent colour, legible labels
 * -------------------------------------------------------------------------- */
/* Icon: the same form as the icon box (§2). The svg rule (0,4,1) must beat
 * Elementor's default `.elementor-widget-icon.elementor-view-default
 * .elementor-icon svg` (0,3,1) and stay below the widget's own (0,5,1). */
:where(.cx-page-body) .elementor .elementor-widget-icon .elementor-icon-wrapper .elementor-icon {
  color: hsl(var(--cx-accent-hsl));
  fill: hsl(var(--cx-accent-hsl));
}
:where(.cx-page-body) .elementor .elementor-widget-icon .elementor-icon-wrapper .elementor-icon svg {
  fill: currentColor;
}
/* The wrapper inherited the page's 1.8 line height (30.6px of `.cx-prose`),
 * so a 44px tile measured 53px tall and sat 4px above the centre of the
 * title beside it (custody draft 1763). The icon is one inline box: no line
 * height of its own. Elementor writes nothing there; 0,1,0. */
:where(.cx-page-body .elementor .elementor-widget-icon) .elementor-icon-wrapper {
  line-height: 0;
}
/* Icon List: 0,3,0 / 0,3,1, above Elementor's defaults (0,2,0 / 0,2,1,
 * whose text colour is the dark Global «secondary»), below the widget's own
 * text and icon colours (0,4,0 / 0,4,1). */
:where(.cx-page-body) .elementor .elementor-widget-icon-list .elementor-icon-list-text {
  color: hsl(var(--cx-on-dark-muted));
}
:where(.cx-page-body) .elementor .elementor-widget-icon-list .elementor-icon-list-icon :is(i, svg) {
  color: hsl(var(--cx-accent-hsl));
  fill: hsl(var(--cx-accent-hsl));
}

/* ----------------------------------------------------------------------------
 * 3. Buttons — match .cx-btn-primary / .cx-btn-secondary; legible labels
 *
 * Elementor button DOM: .elementor-widget-button > a.elementor-button
 *   > .elementor-button-content-wrapper > .elementor-button-text
 * The page wires intent via a class on the OUTER widget:
 *   .elementor-button-primary   -> brand gradient (primary CTA)
 *   .elementor-button-default   -> turquoise outline (secondary)
 * -------------------------------------------------------------------------- */
/* Redesign 2026-11 finish (MKT-WP-REDESIGN-KIT-BUTTONS-FORMS): radius 12, 16/28,
 * 1rem 600, sentence case (Elementor's Button widget default prints the Accent
 * typography: uppercase + tracked), colour 150ms, transform/shadow 200ms. This
 * bridge — not the kit's Theme Style — is what styles Button widgets here: the
 * widget default (Accent background + typography) outranks a kit button style,
 * and the kit's `button` selector reaches the consent banner (measured; see
 * cexum_global_kit_theme_style() in the plugin). */
.cx-page-body .elementor .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: var(--cx-radius-btn);
  font-family: var(--cx-font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid transparent;
  text-decoration: none;
  transition: filter 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease-out,
    transform 0.2s ease-out;
}
/* SPECIFICITY (MKT-WP-BRIDGE-CLASS-SWEEP): the recipe is 0,3,0, above the
 * widget default (`.elementor-widget-button .elementor-button`, 0,2,0) and
 * below the widget's own Style tab (`{{WRAPPER}} .elementor-button`, 0,4,0).
 * Its states and variants stay at 0,3,0 too and win by their place in this
 * file: a hover or a primary rule at 0,4,0 beat the colour an editor set on
 * the button. */
:where(.cx-page-body .elementor) .elementor-button :is(.elementor-button-text, .elementor-button-content-wrapper) {
  color: inherit;
}
:where(.cx-page-body) .elementor .elementor-button.elementor-size-lg {
  font-size: 1.0625rem;
}

/* Default variant = secondary of the redesign: transparent, «Filete fuerte»
 * border, blanco hielo label; on hover a turquesa border over turquesa at 10%.
 * This is also the fall-through for any button with no explicit intent class. */
.cx-page-body .elementor .elementor-button {
  background: transparent;
  color: hsl(var(--cx-on-dark));
  border-color: var(--cx-hairline-strong);
}
/* ROOT (MKT-WP-SECURITY-PAGE-BODY-BRIDGE): from here to the reduced-motion block the STATES of the
 * button (hover, press and the primary type) are rooted at `:where(.cx-page-body, .cx-main--elementor)`.
 * `.cx-main--elementor` is the `<main>` that inc/elementor-landmark.php prints on Elementor's own
 * `elementor_header_footer` template (About 7/321, Contact 14/43, Security 35/56), which has no
 * `.cx-page-body`. The class is NOT added to that `<main>` on purpose: 849 of its 1019 descendants
 * changed computed style on /security/ (the 1200 px grid, 64/32 px padding and the prose rules hang
 * from `.cx-page-body`), so only the interaction rules and the primary TYPE (gradient at rest and on
 * hover, so the type is one unit) follow the landmark, and the resting recipe above (padding,
 * radius, typography, colours of the default type) stays exactly as each page's widgets set it. */
:where(.cx-page-body, .cx-main--elementor) .elementor .elementor-button:hover {
  background: hsl(var(--cx-accent-hsl) / 0.1);
  border-color: hsl(var(--cx-accent-hsl));
  /* pure white, as the canvas' `.bz-btn:hover` (MKT-WP-THEME-GHOST-BUTTON-HOVER-LABEL-WHITE): 10 % turquoise
   * over azul noche is ~rgb(8,44,70), white on it is well over 4.5:1 (measured below) */
  color: var(--cx-blanco);
  text-decoration: none;
  /* The canvas' `.bz-btn:hover` lifts the ghost button as well as the primary one (Custody.dc.html
   * l.269-271, the same `.bz-btn` in OTC); the transform is already in the recipe's transition.
   * Reduced motion drops the move in the block at the end of the buttons (MKT-WP-THEME-GHOST-BUTTON-HOVER-LIFT). */
  transform: translateY(-2px);
}

/* Primary variant = the ACTION gradient (--cx-gradient-action: the brand
 * gradient with its turquoise stop deepened so the white label reaches WCAG AA
 * 4.5:1 along the whole button; the light stop measured 2.02:1).
 * (c) KEPT, the one thing the widget does not override: the gradient is a
 * background-IMAGE, the finish of the «primary» button TYPE (button finish
 * lives in the theme, decided in MKT-WP-REDESIGN-KIT-BUTTONS-FORMS); the
 * widget's «Background colour» paints background-color underneath it. The
 * label colour, typography, border and spacing of the widget all win. An
 * editor who wants a solid colour picks the type «default». */
:where(.cx-page-body, .cx-main--elementor) .elementor .elementor-button-primary .elementor-button {
  background: var(--cx-gradient-action);
  color: var(--cx-button-text);
  border-color: transparent;
}
:where(.cx-page-body .elementor, .cx-main--elementor .elementor) .elementor-button-primary .elementor-button:hover {
  filter: brightness(1.06);
  color: var(--cx-button-text);
  background: var(--cx-gradient-action);
  transform: translateY(-2px);
  box-shadow: var(--cx-shadow-lift);
}
/* The press (1 px down). It sits AFTER the two hover rules above, which are 0,3,0 as well and now
 * both carry a lift: before the ghost button had none, so the press (written earlier in the file)
 * showed on it; with the lift it would have been lost, and it was already lost on the primary one. */
:where(.cx-page-body, .cx-main--elementor) .elementor .elementor-button:active {
  transform: translateY(1px);
}

/* The same recipe for the Theme Builder CONTENT locations (launch 2026-09-25).
 * The 404 (error-404, rendered at the `single` location), the blog single and
 * the archive templates are native widgets now, including Button widgets, and
 * none of them sits inside .cx-page-body, so without this block their buttons
 * kept Elementor's light-theme default on the dark surface. This file is
 * enqueued on every request, so the 404 (where cexum-tb-blog.css is not
 * loaded) gets it too. Post-body buttons inside #cx-tb-single-content follow it
 * as well (their id-level gradient rule in cexum-tb-blog.css is gone,
 * MKT-WP-CHROME-CSS-BEATS-WIDGETS). */
.elementor-location-single .elementor-button,
.elementor-location-archive .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: var(--cx-radius-btn);
  font-family: var(--cx-font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid var(--cx-hairline-strong);
  background: transparent;
  color: hsl(var(--cx-on-dark));
  text-decoration: none;
  transition: filter 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease-out,
    transform 0.2s ease-out;
}
.elementor-location-single .elementor-button .elementor-button-text,
.elementor-location-single .elementor-button .elementor-button-content-wrapper,
.elementor-location-archive .elementor-button .elementor-button-text,
.elementor-location-archive .elementor-button .elementor-button-content-wrapper {
  color: inherit;
}
.elementor-location-single .elementor-button:hover,
.elementor-location-archive .elementor-button:hover {
  background: hsl(var(--cx-accent-hsl) / 0.1);
  border-color: hsl(var(--cx-accent-hsl));
  color: var(--cx-blanco);
  text-decoration: none;
  transform: translateY(-2px);
}
.elementor-location-single .elementor-button:active,
.elementor-location-archive .elementor-button:active {
  transform: translateY(1px);
}
.elementor-location-single .elementor-button-primary .elementor-button,
.elementor-location-archive .elementor-button-primary .elementor-button {
  background: var(--cx-gradient-action);
  color: var(--cx-button-text);
  border-color: transparent;
}
/* 0,3,0 like the primary rule above it, so it wins by its place in the file
 * and stays below the widget's own colour (0,4,0). */
:where(.elementor-location-single, .elementor-location-archive) .elementor-button-primary .elementor-button:hover {
  filter: brightness(1.06);
  color: var(--cx-button-text);
  background: var(--cx-gradient-action);
  transform: translateY(-2px);
  box-shadow: var(--cx-shadow-lift);
}
/* Neutral lift without the move under reduced motion (no-glow rule). */
@media (prefers-reduced-motion: reduce) {
  :where(.cx-page-body .elementor .elementor-widget-wrap > .elementor-widget-icon-box:hover) .elementor-icon-box-wrapper,
  :where(.cx-page-body, .cx-main--elementor) .elementor .elementor-button:hover,
  .elementor-location-single .elementor-button:hover,
  .elementor-location-archive .elementor-button:hover,
  :where(.cx-page-body .elementor, .cx-main--elementor .elementor) .elementor-button-primary .elementor-button:hover,
  :where(.elementor-location-single, .elementor-location-archive) .elementor-button-primary .elementor-button:hover {
    transform: none;
  }
  /* Containers with «Transformar al pasar» (the lift of the card recipes,
   * MKT-WP-REDESIGN-HOVER-LIFT-REDUCED-MOTION). Elementor writes only the
   * variable (`--e-con-transform-translateY` at 0,5,0) and composes the
   * transform in `.e-con.e-transform` (0,2,0); this is 0,3,0 on the composed
   * property, so the border and shadow of the hover state still change. */
  .e-con.e-transform:hover {
    transform: none;
  }
}
.elementor-location-single .elementor-button:focus-visible,
.elementor-location-archive .elementor-button:focus-visible {
  outline: 2px solid hsl(var(--cx-accent-hsl));
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------
 * 4. Accordion — readable on dark, accent markers
 *    (icons are SVG via e_font_icon_svg, so they render without webfonts)
 * -------------------------------------------------------------------------- */
/* 0,3,0: above Elementor's `.elementor-accordion .elementor-accordion-item`
 * border (0,2,0), below the widget's own border (0,4,0). */
:where(.cx-page-body) .elementor .elementor-accordion .elementor-accordion-item {
  background: hsl(var(--cx-glass-tint) / 0.4);
  border: 1px solid hsl(var(--cx-line) / 0.5);
  border-radius: var(--cx-radius);
  margin-bottom: 0.875rem;
  overflow: hidden;
}
:where(.cx-page-body) .elementor .elementor-accordion .elementor-tab-title {
  color: hsl(var(--cx-on-dark));
  font-weight: 600;
  border: 0;
  background: transparent;
}
/* The item clips its content to its corner (`overflow: hidden`, above), and with it the focus ring of the
 * question, drawn 2 px outside the title: on custody and OTC only its bottom edge showed (Tab sweep 2026-11-18,
 * «What can I trade?» at 1440: three sides cut). The ring goes inside the title. The title is a <div tabindex="0">,
 * so the inset also goes in the ring token the `[tabindex]` ring of style.css reads (MKT-WP-FOCUS-RING-HELLO-3-5-2;
 * WCAG 2.2 · 2.4.11, the class of MKT-WP-REPLICA-HOME-RF-FOCUS-PARTIAL-OVERLAPS). 0,2,0: under the widget's own. */
:where(.cx-page-body .elementor .elementor-accordion) .elementor-tab-title:focus-visible {
  --cx-focus-ring-offset: -4px;
  outline-offset: -4px;
}
/* The FAQ question prints inside `<a class="elementor-accordion-title">`. Two
 * defects had to be pinned here:
 *   1. GIANT size — Elementor's per-page CSS (css/post-NN.css) binds
 *      `.elementor-widget-accordion .elementor-accordion-title` to the PRIMARY
 *      (heading/H1) global typography token
 *      (`--e-global-typography-primary-font-size`), so the question rendered at
 *      hero size. The old rule set weight/colour but no font-size, so that giant
 *      size won. Pin it to the FAQ-question size (as the home's old accordion
 *      was; the home now uses a Nested Accordion).
 *   2. UNDERLINE — the title `<a>` lives inside `.cx-prose`, whose
 *      `.cx-prose a { text-decoration: underline }` (child style.css) leaked in.
 *      Reset it to none.
 * 0,3,0 / 0,2,1 (contract at the top of this file): above the widget default
 * (0,2,0), below the colour (0,4,0) and typography (0,5,0) set on the widget. */
:where(.cx-page-body) .elementor .elementor-accordion .elementor-accordion-title,
:where(.cx-page-body .elementor) .elementor-accordion .elementor-tab-title .elementor-accordion-title,
:where(.cx-page-body .elementor) .elementor-accordion .elementor-tab-title a {
  color: hsl(var(--cx-on-dark));
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-decoration: none;
  margin: 0;
}
:where(.cx-page-body .elementor .elementor-accordion .elementor-tab-title:is(:hover, .elementor-active)) :is(.elementor-accordion-title, a) {
  text-decoration: none;
}
:where(.cx-page-body) .elementor .elementor-accordion .elementor-tab-content {
  color: hsl(var(--cx-on-dark-muted));
  background: transparent;
  border: 0;
  line-height: 1.65;
}
:where(.cx-page-body .elementor) .elementor-accordion .elementor-tab-content p {
  color: inherit;
}
/* The colour goes on the icon's box (0,3,0: above Elementor's default,
 * `.elementor-widget-accordion .elementor-accordion-icon`, 0,2,0; below the
 * widget's own colour on that same box, 0,4,0) and the svg follows it
 * (0,3,1, below the widget's `.elementor-accordion-icon svg` fill, 0,4,1).
 * Painting the <i>/<svg> themselves blocked the widget's colour. */
:where(.cx-page-body) .elementor .elementor-accordion .elementor-accordion-icon {
  color: hsl(var(--cx-accent-hsl));
}
:where(.cx-page-body) .elementor .elementor-accordion .elementor-accordion-icon svg {
  fill: currentColor;
}

/* ----------------------------------------------------------------------------
 * 5. Spacing: ONE owner per gap (MKT-WP-PDF-SPACING).
 *
 *    The SECTION owns the vertical band. The heading widget, the last block
 *    inside a widget container and the column's vertical padding own nothing.
 *
 *    SPECIFICITY IS PART OF THE FIX. Elementor writes an editor's padding as
 *      .elementor-26 .elementor-element.elementor-element-955769d7{padding:...}
 *    = (0,3,0). The previous default here was ALSO (0,3,0), an exact tie broken
 *    only by stylesheet order: the builder could show 96px while the page
 *    rendered 36px. The default below is (0,2,0), strictly BELOW Elementor's
 *    rule, so what an editor sets in the builder always wins. The theme keeps
 *    the FALLBACK for sections nobody has touched.
 *
 *    The home is no longer excluded (MKT-WP-HOME-CSS-BEATS-WIDGETS, 2026-11-03):
 *    a `:where(body:not(.cx-home-elementor))` guard used to hand it to
 *    cexum-home-elementor.css, which no longer styles any Elementor element.
 *
 *    Ships together with the spacing edit-set (section padding/_tablet/_mobile
 *    page data). The edit-set alone would fight a tied theme rule and leave the
 *    40px heading margin in place; this CSS alone is a complete improvement.
 * -------------------------------------------------------------------------- */
.cx-page-body .elementor-section {
  padding-top: var(--cx-rhythm-block);
  padding-bottom: var(--cx-rhythm-block);
}
.cx-page-body .elementor-inner-section {
  padding-top: 0;
  padding-bottom: 0;
}
/* Empty columns sometimes carry a min-height that pads dead space. */
.cx-page-body .elementor .elementor-column-wrap,
.cx-page-body .elementor .elementor-widget-wrap {
  align-content: flex-start;
}
/* The column is a GUTTER, not a band: keep Elementor's 10px horizontal gutter
 * (the grid gap on multi-column rows), drop the vertical twin, which was paid
 * twice at every section boundary.
 * SPECIFICITY (0,3,1), on purpose: one step above Elementor's own
 * '.elementor-column-gap-default>.elementor-column>.elementor-element-populated
 * {padding:10px}' (0,3,0), which it must beat, and one step BELOW a column's
 * own padding, set in the builder ('.elementor-NN .elementor-element.
 * elementor-element-XX > .elementor-element-populated', 0,4,0) or in its
 * Advanced > Custom CSS ('selector > .elementor-widget-wrap', 0,4,0). MEASURED
 * 2026-09-25: the old (0,5,0) selector also beat the /pricing/ cards' Custom
 * CSS 'padding:1.5rem', so the check icon sat on the card's top border and the
 * last feature line on its bottom border (padding-block 0 inside a bordered
 * card). What an editor sets on a column now always wins. */
:where(.cx-page-body .elementor) .elementor-column-gap-default > .elementor-column > div.elementor-element-populated {
  padding-block: 0;
}
/* WIDGET -> WIDGET (MKT-WP-BRIDGE-CLASS-SWEEP): Elementor owns it. The
 * theme used to add `margin-bottom: var(--cx-rhythm-stack)` (20px) under
 * every widget at 0,4,0. It beat Advanced > Margin (0,3,0), so a widget set
 * to margin 0 kept 20px, and in a container (`.e-con`), where the space
 * between widgets is the container's gap and Elementor zeroes the margin, it
 * added 20px under all but the last: the first of two buttons in a centred
 * row sat 10px above the second (custody draft 1763, /contact/, home).
 * Removed: in a legacy column Elementor already gives the same 20px through
 * Site Settings > Layout > «Widgets Space» (`--kit-widget-spacing`, set to
 * 20px in the kit), and in a container the gap rules. Both are editable from
 * wp-admin.
 * Proximity stays, for the old generated pages only: a heading belongs to the
 * copy beneath it (12px, not 20px). Legacy columns only (in a container the
 * gap owns the space); 0,2,1: above Elementor's own
 * `.elementor-widget:not(:last-child)` (0,2,0), below Advanced > Margin
 * (0,3,0). */
:where(.cx-page-body .elementor .elementor-widget-wrap) > div.elementor-widget-heading:not(:last-child) {
  margin-bottom: var(--cx-rhythm-head);
}
/* Neutralisers: the two layers that were double-paying the gap. Scoped to
 * .cx-page-body (the TB header/footer and the blog templates render outside it).
 * The home is inside .cx-page-body and gets them too since
 * MKT-WP-HOME-CSS-BEATS-WIDGETS (measured 2026-11-03: without them every Text
 * Editor of the home kept 20 px under its last <p> and every heading 16-20 px
 * under its title). Do NOT widen either selector to `.elementor` alone: that
 * would flatten the header and the footer in one stroke. */
.cx-page-body .elementor .elementor-heading-title {
  margin-block: 0;
}
.cx-page-body .elementor .elementor-widget-container > :last-child {
  margin-bottom: 0;
}
/* The same neutraliser for Elementor's optimised markup, where a Text Editor has
 * no .elementor-widget-container and its <p> are the widget's own children: the
 * rule above never matched them, so `.cx-prose p` (style.css, 0,1,1) left 20 px
 * under the last paragraph of every Text Editor (measured 2026-11-03,
 * MKT-WP-HOME-CSS-BEATS-WIDGETS: 43 widgets on the home, 18 on /about/, 11 on
 * /es/security/, all inside the widget's box, so in a container it added to the
 * gap). 0,2,0: above `.cx-prose p`, below the widget's «Paragraph Spacing»
 * (`.elementor-NN .elementor-element.elementor-element-ID p`, 0,3,1). */
:where(.cx-page-body .elementor) .elementor-widget-text-editor > :last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------------------
 * 6. Counsel banner — STAYS dark text on the yellow (#FBBF24) band.
 *
 * The banner section (#cexum-counsel-banner-section) gets its yellow
 * background from the per-page Elementor CSS (css/post-NN.css). Its heading
 * (#cexum-counsel-banner) is a heading widget, so the global "headings ->
 * light" rule above would render it invisible on yellow. Pin it dark, and
 * keep the band's own padding tight so it reads as a slim alert strip.
 * (c) KEPT above the widget on purpose (MKT-WP-BRIDGE-CLASS-SWEEP): the
 * banner is the visible counsel-lock notice, a regulatory control (G4) that
 * the plugin generates and counsel owns; marketing does not restyle it, and
 * its legibility on amber must not depend on a setting staying in place.
 * -------------------------------------------------------------------------- */
.cx-page-body .elementor #cexum-counsel-banner .elementor-heading-title,
.cx-page-body .elementor #cexum-counsel-banner.elementor-widget-heading .elementor-heading-title {
  color: var(--cx-banner-text); /* near-black on amber, WCAG-AA on #FBBF24 */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-weight: 600;
}
.cx-page-body .elementor #cexum-counsel-banner-section {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

/* ----------------------------------------------------------------------------
 * 7. Dividers / spacers — keep separators visible on dark
 * -------------------------------------------------------------------------- */
/* Through Elementor's own variable, on the widget (0,2,0): above its default
 * (`.elementor-widget-divider { --divider-color }`, 0,1,0), below the
 * widget's own colour (0,3,0). The old `border-top-color` on the separator
 * (0,4,0) overrode the line whatever colour the widget set. */
:where(.cx-page-body) .elementor .elementor-widget-divider {
  --divider-color: hsl(var(--cx-line) / 0.5);
}

/* ----------------------------------------------------------------------------
 * 7b. Long-word safety net (2026-09-25).
 *
 * MEASURED at 390px: card and section titles with one long word
 * ("Almacenamiento" 351px, "Two-factor authentication" 299px, "Consejo de
 * administración" 305px at the 48px kit size) were wider than their card and,
 * through min-content sizing, pushed the page 3-55px sideways on 9 pages. The
 * real fix was the TITLE SIZE (the kit's Card Title role, now 18-20px).
 *
 * NO AUTOMATIC HYPHENATION. The first net also set `hyphens:auto`, and the
 * browser then split words that fit perfectly well on the next line:
 * "criptomo-nedas" in the ES home H1 at 1440, "re-tail", "com-pany"
 * (launch review 2026-09-25). A heading or a card title never breaks inside a
 * word by choice. `overflow-wrap:break-word` is the last-resort net only: it
 * breaks a word solely when that one word is wider than the whole line, and,
 * unlike `anywhere`, it does not shrink the element's min-content width.
 *
 * …BUT ONLY WHILE THE WIDGET KEEPS ITS AUTOMATIC MINIMUM (MKT-WP-HOME-390-ES-WORDS-CUT).
 * Elementor's own frontend sheet gives every widget in a container
 * `min-width: 0` (`.e-con .elementor-widget`, 0,2,0), so in a ROW of a flex
 * container the browser may shrink a widget below its longest word, and then
 * break-word does break it, because the word is now wider than the squeezed
 * line. Measured 2026-11-10 on the ES home at 390 px: the label/value rows of the
 * «CON CEXUM» table («Hora|s», «Papele|o», «Visibilid|ad»), a 13 px label pushed
 * down to a few pixels by a long value beside it. The rule below gives the
 * text widgets of this net their automatic minimum back when they are the
 * items of a FLEX container: a flex item then never shrinks below its longest
 * word, the long value next to it wraps at its spaces instead, and a column
 * container (cross axis) or a grid (not matched) behaves exactly as before.
 * 0,2,0: a tie with Elementor's rule, won by source order (this sheet prints
 * after it), and under the widget floor of the editor (0,3,0).
 * -------------------------------------------------------------------------- */
:where(.cx-page-body .elementor .e-flex, .cx-page-body .elementor .e-flex > .e-con-inner) > .elementor-widget:is(.elementor-widget-heading, .elementor-widget-icon-box, .elementor-widget-image-box) {
  min-width: auto;
}
.cx-page-body .elementor .elementor-heading-title,
.cx-page-body .elementor .elementor-icon-box-title,
.cx-page-body .elementor .elementor-image-box-title,
.cx-page-body .elementor .elementor-icon-box-description,
.cx-page-body .elementor .elementor-image-box-description {
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.cx-page-body .elementor .elementor-column,
.cx-page-body .elementor .elementor-widget-wrap,
:where(.cx-page-body .elementor) .elementor-widget {
  min-width: 0;
}

/* ----------------------------------------------------------------------------
 * 8. Card-grid reflow — never let text-heavy multi-column rows collapse into
 *    tall, narrow boxes.
 *
 * On interior pages the content canvas is already narrower than the home, and
 * narrower still when the in-page TOC rail is present (~750px). Elementor's
 * 4-up / 5-up sections then squeeze long paragraphs into ~190px columns that
 * run 800px+ tall — the "muy alargado" sliver. Let those rows WRAP and cap them
 * at 2-up so they read as calm 2x2 cards; collapse to one column on small
 * screens. flex-wrap on every interior container is safe: rows whose columns
 * already sum to <=100% never wrap (no visual change); only the rows we widen
 * to 2-up do.
 * -------------------------------------------------------------------------- */
.cx-page-body .elementor .elementor-container {
  flex-wrap: wrap;
  row-gap: 1.5rem;
}
.cx-page-body .elementor .elementor-container > .elementor-col-25,
.cx-page-body .elementor .elementor-container > .elementor-col-20,
.cx-page-body .elementor .elementor-container > .elementor-col-16 {
  width: 50%;
}
/* With the sticky TOC the prose column is ~750px, so even a 3-up row is too
   tight — relax it to 2-up as well. */
.cx-page-body--has-toc .elementor .elementor-container > .elementor-col-33 {
  width: 50%;
}
/* Below ~880px even 2-up cramps a paragraph — go single column. */
@media (max-width: 880px) {
  .cx-page-body .elementor .elementor-container > .elementor-col-25,
  .cx-page-body .elementor .elementor-container > .elementor-col-20,
  .cx-page-body .elementor .elementor-container > .elementor-col-16,
  .cx-page-body .elementor .elementor-container > .elementor-col-33 {
    width: 100%;
  }
}

/* ----------------------------------------------------------------------------
 * 8b. CARD GRIDS: equal cards, a lone last card centred, a real gutter
 *     (launch review 2026-09-25: items X and AA, observation OBS-LONE-CARD).
 *
 * A CARD GRID is a row of two or more equal Elementor columns (col-50/33/25/
 * 20/16) in which every column is populated and starts with an Icon Box: the
 * icon-box card rows of every interior page, and the /pricing/ plan cards
 * (an Icon Box heading its feature list, the column painted as the card by
 * its own Custom CSS). Nothing in the page data changes; an editor keeps
 * adding, removing and reordering cards in the builder as before.
 *
 * MEASURED on the 58 published pages before this block (1440 / 390):
 *   - 24 grids left an odd last card alone on the left, 160px off the grid
 *     centre (about, contact/methods, products, products/custody,
 *     products/spot-otc, the three solutions pages, EN and ES); only the ES
 *     governance grid was centred, by its own Custom CSS;
 *   - 37 / 57 grids had cards of different heights, because a flex-wrap row
 *     only equalises the cards that share a line (ES governance 270/270/244 at
 *     1440, 212/236/212 at 390);
 *   - the two /pricing/ cards touched (0px apart at 1440): the column is the
 *     painted card, and Elementor's 10px gutter is PADDING inside that paint.
 *
 * RECIPE: the row becomes a CSS grid of two tracks per card.
 *   - every card spans two tracks, so a lone last card can start one track in
 *     and sit exactly centred (2-up: tracks 2-3 of 4; 3-up: tracks 3-4 of 6,
 *     or 2-3 and 4-5 for a last pair);
 *   - `grid-auto-rows: 1fr` makes every row as tall as the tallest card of
 *     the grid; §EQUAL-HEIGHT below carries that height down to the card;
 *   - the 10px column gutter moves from each column's padding to the grid's
 *     inline padding and a 20px gap (2 x --cx-column-gutter): an unpainted
 *     card lands on the same pixels as before, a painted column now has the
 *     gutter OUTSIDE its paint. The column padding reset is (0,3,1), below a
 *     column's own Custom CSS (0,4,0), so the /pricing/ cards keep their
 *     1.5rem inside;
 *   - cards per row follow the widths §8 already gives the columns: 1 below
 *     768px; col-50 2 from 768px; col-25/20/16 2 from 881px; col-33 3 from
 *     881px, 2 on pages with the contents rail.
 * Legacy columns only: the home (containers) is not matched, and since
 * MKT-WP-HOME-CSS-BEATS-WIDGETS it is no longer excluded by a guard either.
 * -------------------------------------------------------------------------- */
.cx-page-body .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))) {
  --cx-card-tracks: 2;
  display: grid;
  grid-template-columns: repeat(var(--cx-card-tracks), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  column-gap: calc(2 * var(--cx-column-gutter));
  padding-inline: var(--cx-column-gutter);
}
.cx-page-body .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))) > .elementor-column {
  width: auto;
  min-width: 0;
  grid-column: span 2;
}
:where(.cx-page-body .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16)))) > .elementor-column > div.elementor-widget-wrap.elementor-element-populated {
  padding-inline: 0;
}
@media (min-width: 768px) {
  .cx-page-body .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> .elementor-col-50) {
    --cx-card-tracks: 4;
  }
  .cx-page-body .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> .elementor-col-50) > .elementor-column:nth-child(odd):last-child {
    grid-column: 2 / span 2;
  }
}
@media (min-width: 881px) {
  .cx-page-body .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> :is(.elementor-col-25, .elementor-col-20, .elementor-col-16)),
  .cx-page-body--has-toc .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> .elementor-col-33) {
    --cx-card-tracks: 4;
  }
  .cx-page-body .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> :is(.elementor-col-25, .elementor-col-20, .elementor-col-16)) > .elementor-column:nth-child(odd):last-child,
  .cx-page-body--has-toc .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> .elementor-col-33) > .elementor-column:nth-child(odd):last-child {
    grid-column: 2 / span 2;
  }
  .cx-page-body:not(.cx-page-body--has-toc) .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> .elementor-col-33) {
    --cx-card-tracks: 6;
  }
  .cx-page-body:not(.cx-page-body--has-toc) .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> .elementor-col-33) > .elementor-column:nth-child(3n+1):last-child {
    grid-column: 3 / span 2;
  }
  .cx-page-body:not(.cx-page-body--has-toc) .elementor .elementor-container:has(> .elementor-column + .elementor-column):not(:has(> .elementor-column > .elementor-widget-wrap > :first-child:not(.elementor-widget-icon-box))):not(:has(> .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))):not(:has(> .elementor-column:not(.elementor-col-50, .elementor-col-33, .elementor-col-25, .elementor-col-20, .elementor-col-16))):has(> .elementor-col-33) > .elementor-column:nth-child(3n+1):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
}

/* ----------------------------------------------------------------------------
 * EQUAL-HEIGHT CARD ROWS (PDF, card rows of unequal height: governance cards
 * 168-219px at 390px, a [194, 245] row at 1440px).
 *
 * The glass card surface is the .elementor-icon-box-wrapper (height:100% in §2),
 * but the percentage had nothing definite to resolve against: the column
 * stretches, the widget-wrap stretches with it, and the widget inside it was
 * sized to its content (align-content:flex-start in §5). When the icon-box is
 * the column's ONLY widget, carry the height down the chain so every card in a
 * row is as tall as the tallest. A column holding anything else is untouched.
 * Production markup (Elementor 4.2, optimized DOM) has no .elementor-widget-
 * container inside the icon-box; the second selector covers stacks that do.
 * -------------------------------------------------------------------------- */
.cx-page-body .elementor .elementor-column > .elementor-widget-wrap:has(> .elementor-widget-icon-box:only-child) {
  height: 100%;
}
:where(.cx-page-body .elementor .elementor-widget-wrap) > .elementor-widget-icon-box:only-child,
:where(.cx-page-body .elementor .elementor-widget-wrap > .elementor-widget-icon-box:only-child) > .elementor-widget-container {
  height: 100%;
}

/* ----------------------------------------------------------------------------
 * CTA PAIR ROW (MKT-WP-PDF-CTA, P-1; uniform size 2026-09-25): .cx-cta-row on
 * the SECTION of a two-button closing/hero CTA pair (class added by the CTA
 * edit-set). The blog single (Theme Builder `single` location, outside
 * .cx-page-body) carries .cx-cta-row pairs too, so both scopes are covered.
 *
 * BUTTON-ONLY ROWS get the same recipe without a class (launch review
 * 2026-09-25, item B): a section of two or more columns in which every column
 * holds only Button widgets, e.g. the related-link rows "Crypto custody" /
 * "How we handle security incidents" on /security/ (211x45 next to 301x64),
 * the legal cross-links on /legal/terms/ and /legal/risk-disclosure/ (209 vs
 * 197 wide), and the blog single's "Spot & OTC trading" / "About CEXUM"
 * (246 vs 182). The match is `.elementor-section:where(...)`, specificity
 * (0,1,0) like `.cx-cta-row`, so both kinds of row resolve the same way.
 * Staff never add a class: a new row of buttons is uniform by construction.
 * Legacy sections only: the home (containers) is not matched, and since
 * MKT-WP-HOME-CSS-BEATS-WIDGETS it is no longer excluded by a guard either.
 *
 * MEASURED 2026-09-25 on the 58 published pages: 80 pairs, 76 of them with two
 * different widths at 1440 (each column shrank to its own label), and at 390
 * 41 pairs mixing a 1-line and a 2- or 3-line button (52 vs 73/93px).
 *
 * Recipe (the same for every pair on the site):
 *   - the pair's SECTION is a named query container (cx-cta-pair), so the
 *     layout follows the width the pair actually has, not the viewport: the
 *     home closing CTA lives in a 418px column at 1440;
 *   - under 32rem of room: one full-width column, `grid-auto-rows: 1fr`, so
 *     every button of the pair is as tall as the tallest one;
 *   - from 32rem: one row of equal tracks (`minmax(0, 1fr)` in a fit-content
 *     grid), each as wide as the LONGEST label up to --cx-cta-pair-max,
 *     shrinking together when the row is narrower, centred as a group;
 *   - the grid stretches each cell and the chain below carries the height down
 *     to the <a>, whose label is centred: a 1-line label sits in a box of the
 *     same size as its 2-line sibling. Nothing here changes colour.
 * -------------------------------------------------------------------------- */
:is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))))) {
  container: cx-cta-pair / inline-size;
}
:is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))))) > .elementor-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.875rem;
  /* Elementor's content_position control sets align-items on the container;
   * the pair needs its cells stretched to the row height. */
  align-items: stretch;
  justify-items: stretch;
}
:is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))))) > .elementor-container > .elementor-column {
  width: auto;
  min-width: 0;
}
@container cx-cta-pair (min-width: 32rem) {
  :is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))))) > .elementor-container {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
  :is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))))) > .elementor-container > .elementor-column {
    max-width: var(--cx-cta-pair-max);
  }
}
/* Carry the cell height down to the button (column -> wrap -> widget -> <a>). */
:is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))))) > .elementor-container > .elementor-column > .elementor-widget-wrap {
  align-content: stretch;
}
/* The row is the context, inside :where() (MKT-WP-BRIDGE-CLASS-SWEEP): the
 * widget rule is 0,2,1, above Elementor's `.elementor-widget:not(:last-child)`
 * margin (0,2,0) and below the widget's own width and margin (0,3,0); the
 * <a> rule is 0,3,0 and wins over the button recipe of §3 (0,3,0) by its
 * place in this file, below the widget's Style tab (0,4,0). It names the
 * class twice instead of `.elementor-button-wrapper`, which the optimised DOM
 * leaves out (measured: with the wrapper in the selector the ES pricing and
 * custody pair lost its equal height, 75 -> 54px). */
:where(:is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated)))))) div.elementor-widget-button.elementor-element {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0;
}
:where(:is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))))) .elementor-widget-button) > .elementor-widget-container,
:where(:is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated))))) .elementor-widget-button) .elementor-button-wrapper {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
:where(:is(.cx-page-body .elementor, .elementor-location-single) :is(.cx-cta-row, .elementor-section:where(:has(> .elementor-container > .elementor-column + .elementor-column)):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > :not(.elementor-widget-button)))):where(:not(:has(> .elementor-container > .elementor-column > .elementor-widget-wrap:not(.elementor-element-populated)))))) .elementor-widget-button .elementor-button.elementor-button {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* ----------------------------------------------------------------------------
 * 9. Kit Theme Style guards (MKT-WP-REDESIGN-KIT-BUTTONS-FORMS)
 *
 * The kit's Theme Style (Site Settings) styles fields, links and images through
 * body-wide selectors (`.elementor-kit-N input…`, `… a`, `… img`). Content
 * images take its 20px radius; the header and footer logos (and the language
 * flags beside them) must not be clipped, so the chrome keeps square images.
 * Element + class (0,1,1) ties the kit and wins by load order; a radius set on
 * a widget in the panel (0,2,1+) still wins over both. Measured 2026-11-02:
 * without this the logos computed border-radius 20px on every page.
 * The fields' 2px focus ring is the global :focus-visible ring of style.css
 * (the kit has no outline control); the links fallback is style.css `a`.
 * -------------------------------------------------------------------------- */
.elementor-location-header img,
.elementor-location-footer img {
  border-radius: 0;
}
