/* Everest Wealth: shared helpers for the advisor, portal and product pages.
   Loaded on every page (small). Elementor's atomic class CSS cannot express list markers,
   so the arrow list lives here. Global classes are named ewp-* in the Elementor kit. */

.ewp-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ewp-list li { position: relative; padding-inline-start: 1.7em; margin: 0; }
.ewp-list li::before {
  content: "\2192";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--ew-plum-600, #6B3FA0);
  font-weight: 700;
}
.ewp-list li strong { color: var(--ew-plum-900, #32174D); font-weight: 600; }
.ewp-callout strong { color: var(--ew-plum-900, #32174D); }

/* Dark-section list variant */
.ewp-list-dark ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ewp-list-dark li { position: relative; padding-inline-start: 1.7em; margin: 0; color: rgba(255, 255, 255, 0.88); }
.ewp-list-dark li::before { content: "\2192"; position: absolute; inset-inline-start: 0; color: #C4B5FD; font-weight: 700; }

/* Form checkbox: visible box with a plum check */
.ewp-form input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ew-plum-900, #32174D);
}
.ewp-form .e-form-success-message, .ewp-form .e-form-error-message { grid-column: 1 / -1; }


/* Type scale (site-wide). Approved on Amethyst Income+ (page 266) and rolled out to every ewp-* class.
   Selectors are prefixed (body .elementor) so they beat the kit's own class rules and the
   Elementor default paragraph style. Footer sizes target the footer site part by element id. */

/* Eyebrows and headings */
body .elementor .ewp-eyebrow,
body .elementor .ewp-eyebrow-dark { font-size: 0.875rem; }
body .elementor .ewp-h2,
body .elementor .ewp-h2-dark { font-size: clamp(2.4rem, 4.4vw, 3.75rem); }
/* H1 (2026-11-08): line-height 0.92 clipped descenders on the lower line, tracking was slightly tight
   and the block was narrow. Slightly looser tracking and leading, about 18% wider measure. The Home
   hero H1 (element 2ca065fd) gets the same tracking and leading. */
body .elementor .ewp-h1,
body .elementor .ewp-h1-dark { line-height: 1.08; letter-spacing: 0.012em; max-width: 9em; }
.elementor [data-id="2ca065fd"] { line-height: 1.08; letter-spacing: 0.012em; }

/* Heading emphasis (2026-11-08): the one to three impactful words of a heading sit in <em>.
   Light sections use the plum accent (#6B3FA0, 6.6:1 on white); dark sections use silver-violet
   (#C4B5FD). Matches the Home treatment (ew-title-accent). Home hero H1 uses the dark variant. */
body .elementor .ewp-h1 em,
body .elementor .ewp-h2 em { color: var(--ew-plum-600, #6B3FA0); font-style: italic; }
body .elementor .ewp-h1-dark em,
body .elementor .ewp-h2-dark em,
body .elementor .ewp-h3-dark em,
.elementor [data-id="2ca065fd"] em { color: var(--ew-silver-violet, #C4B5FD); font-style: italic; }

/* Lead paragraphs (hero lead is half a point smaller than the old 19px) */
body .elementor .ewp-lead { font-size: clamp(1.1rem, 1.1vw + 0.75rem, 1.3rem); line-height: 1.6; }
body .elementor .ewp-lead-dark { font-size: calc(clamp(1.05rem, 1.4vw, 1.2rem) - 0.5pt); }

/* Hero spec strip, lists and callouts */
body .elementor .ewp-spec-value { font-size: 1rem; line-height: 1.3; }
body .elementor .ewp-list,
body .elementor .ewp-list-dark { font-size: 1.2rem; line-height: 1.6; }
body .elementor .ewp-callout { font-size: 1.0625rem; line-height: 1.6; }
body .elementor .ewp-step-label { font-size: 0.85rem; }

/* Cards, FAQ and form */
body .elementor .ewp-card-title { font-size: 1.25rem; }
body .elementor .ewp-card-text { font-size: 1.0625rem; line-height: 1.6; }
body .elementor .ewp-acc-title { font-size: 1.25rem; line-height: 1.4; }
body .elementor .ewp-acc-body { font-size: 1.125rem; line-height: 1.65; }
body .elementor .ewp-label { font-size: 0.9rem; }
body .elementor .ewp-input { font-size: 1.0625rem; }
body .elementor .ewp-consent { font-size: 0.95rem; line-height: 1.55; }
body .elementor .ewp-submit { font-size: 1rem; }

/* Footer (site part 15). Brand lockup left alone. */
/* Made much smaller 2026-11-08 at Marcos's request (was 17px links, 17px statement). */
.elementor [data-id="2e4effc4"] { font-size: 0.8125rem; line-height: 1.5; }
.elementor [data-id="733eadb5"], .elementor [data-id="6c63eafb"], .elementor [data-id="7e1ea196"] { font-size: 0.75rem; line-height: 1.5; }
.elementor [data-id="1f97954"], .elementor [data-id="204924cc"], .elementor [data-id="381320aa"],
.elementor [data-id="55f4740c"] { font-size: 0.6875rem; padding: 4px 10px; }
.elementor [data-id="1af1bfba"], .elementor [data-id="39676a82"], .elementor [data-id="51727a29"] { font-size: 0.6875rem; }
.elementor [data-id="41a3adc"], .elementor [data-id="5d6c7437"], .elementor [data-id="25cfe216"],
.elementor [data-id="569dd97f"], .elementor [data-id="3a158c7d"], .elementor [data-id="76268cb7"],
.elementor [data-id="69178307"], .elementor [data-id="5e5b7cb8"], .elementor [data-id="7d685d76"],
.elementor [data-id="292c43e6"], .elementor [data-id="165c801e"], .elementor [data-id="7f351bdf"],
.elementor [data-id="78248251"], .elementor [data-id="674682f9"], .elementor [data-id="3bd67117"],
.elementor [data-id="50f5c919"], .elementor [data-id="59667b1b"] { font-size: 0.8125rem; line-height: 1.4; }
.elementor [data-id="109c8542"], .elementor [data-id="47aae723"], .elementor [data-id="7aa4a0e8"] { gap: 6px; }
.elementor [data-id="7f2cbfb8"], .elementor [data-id="4b42f00a"], .elementor [data-id="3a05e92f"] {
  font-size: 0.6875rem;
  line-height: 1.5;
}
.elementor [data-id="474c6dbf"] { font-size: 0.6875rem; }
.elementor [data-id="2e5418ed"] { font-size: 0.6875rem; }

/* Tighter vertical rhythm (2026-11-08): hero bottom padding. Top stays clear of the transparent header. */
body .elementor .ewp-hero-dark { padding-bottom: 44px; }

/* Mobile (2026-11-08): shorter header clearance so hero CTAs sit in the first screen, and the
   new-partner card leads the For Advisors hero (the portal card is not live yet). */
@media (max-width: 767px) {
  body .elementor .ewp-hero-dark { padding-top: 168px; }
  .elementor [data-id="ef0c206"] { order: -1; }
}

/* Mobile length (2026-11-08): card grids of three or more become swipeable rows instead of
   long stacks. Cards peek at the edge so it is clear there is more to swipe to. */
@media (max-width: 767px) {
  body .elementor .ewp-grid-3,
  body .elementor .ewp-grid-4,
  body .elementor .ewp-grid-5 {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 10px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  body .elementor .ewp-grid-3 > *,
  body .elementor .ewp-grid-4 > *,
  body .elementor .ewp-grid-5 > * {
    flex: 0 0 82%;
    min-width: 0;
    scroll-snap-align: start;
  }
}

/* Mobile length, Home (2026-11-08): product cards and advisor tiles become swipeable rows, and the
   three stats sit in one row. These use element ids because the Home page does not use ewp- classes. */
@media (max-width: 767px) {
  .elementor [data-id="784f2ae9"],
  .elementor [data-id="4b63c50"] {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 10px;
    max-width: 100%;
  }
  .elementor [data-id="784f2ae9"] > *,
  .elementor [data-id="4b63c50"] > * {
    flex: 0 0 82%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .elementor [data-id="349259d4"] { flex-direction: row !important; gap: 8px; align-items: flex-start; }
  .elementor [data-id="349259d4"] > * { flex: 1 1 0; min-width: 0; padding-inline: 4px; }
  .elementor [data-id="349259d4"] .ew-stat-number { font-size: 2.4rem; }
  .elementor [data-id="349259d4"] .ew-stat-label { font-size: 0.68rem; letter-spacing: 0.08em; }
}

/* Mobile length, product pages (2026-11-08): compact the crest, fact card, layers and form panel.
   Product pages 266-269 are clones of 239 and share these classes and element ids. */
@media (max-width: 767px) {
  body .elementor .ewp-stack { gap: 14px; }
  body .elementor .ewp-crest { padding: 20px; gap: 8px; }
  body .elementor .ewp-crest-name { font-size: 1.5rem; line-height: 1.1; }
  body .elementor .ewp-crest-rate { font-size: 2.6rem; line-height: 1; }
  body .elementor .ewp-card-flat { padding: 16px; }
  .elementor [data-id="5549194c"] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .elementor .ewp-layer { padding: 14px 16px; gap: 12px; }
  body .elementor .ewp-form-panel { padding: 18px; }
}

/* Mobile type (2026-11-08): large display headings wrapped to 3 to 4 lines at 375px. */
@media (max-width: 767px) {
  body .elementor .ewp-h1,
  body .elementor .ewp-h1-dark { font-size: 2.6rem; }
  body .elementor .ewp-h2,
  body .elementor .ewp-h2-dark,
  body .elementor .ew-section-title { font-size: 2.05rem; line-height: 1.1; }
}

/* Navbar (2026-11-08): the logo PNG is square with about 20% transparent space above and below the
   mark. Crop it to the mark so the bar can be shorter without shrinking the logo. */
body .ew-mainnav img {
  width: 108px !important;
  height: 66px !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Section texture (2026-11-08): the white and off-white sections alternate with no variation.
   Add a faint plum mountain ridge along the bottom of the tinted sections, a soft plum glow in a
   corner of each, and a short accent rule before eyebrows. Decoration only, no layout change. */
body .elementor .ewp-bg-tint,
body .elementor .ew-bg-muted {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='180' viewBox='0 0 1200 180' preserveAspectRatio='none'%3E%3Cpath d='M0 180 L120 80 L190 120 L330 24 L450 110 L520 76 L650 150 L760 56 L900 130 L1010 68 L1200 160 V180 Z' fill='%236B3FA0' fill-opacity='0.055'/%3E%3Cpath d='M0 180 L200 104 L300 136 L470 66 L600 142 L720 98 L860 158 L1000 108 L1200 172 V180 Z' fill='%236B3FA0' fill-opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(55% 70% at 100% 0%, rgba(107, 63, 160, 0.10), rgba(107, 63, 160, 0) 70%);
  background-repeat: no-repeat, no-repeat;
  background-position: bottom center, top right;
  background-size: 100% 150px, auto;
}
body .elementor .ewp-bg-white,
body .elementor .ew-bg-canvas {
  background-image: radial-gradient(45% 60% at 0% 100%, rgba(107, 63, 160, 0.05), rgba(107, 63, 160, 0) 70%);
  background-repeat: no-repeat;
}
body .elementor .ewp-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--ew-plum-600, #6B3FA0);
}
