/* SELF ENTOURAGE — LOGO PALETTE LAYER
   Colors are sampled from the circle logo itself
   (assets/brand/self-entourage-ai-original.jpg): red #DA3A34, gold #FFC857,
   teal #084C61. Loaded last on every AI-lane page by scripts/approved-brand.cjs.
   Text shades are chosen to pass WCAG 2.2 AA (4.5:1) on every light surface.
   The EMS lane keeps its own stylesheet and red crown shield. */
html:root {
  --se-brand-red: #DA3A34;          /* logo red: fills, rules, large type */
  --se-brand-red-text: #C4322C;     /* 5.1:1 on #F6F8F9, body-size red text */
  --se-brand-red-deep: #9E2A25;     /* hover / pressed */
  --se-brand-red-on-dark: #F06A5F;  /* 5.8:1 on ink */
  --se-brand-gold: #FFC857;         /* logo gold: on ink or teal only */
  --se-brand-teal: #084C61;         /* logo teal: 9.5:1 on white */
  --se-brand-teal-deep: #0B2F3B;
  --se-brand-ink: #061B22;
  --se-brand-paper: #FFFFFF;
  --se-brand-paper-2: #F6F8F9;
  --se-brand-paper-3: #EEF2F4;
  --se-brand-line: #D5DEE1;

  /* One source of truth for the legacy layers still on the page. */
  --red: #C9352F; --red-700: #B92F2A; --se-red: #C9352F; --se-logo-red: #C9352F;
  --se-v10-red: #C9352F; --se-v19-red: #C9352F; --identity-red: #C9352F; --zero-red: #C4322C; --se-bg-red: #C4322C;
  --gold: #FFC857; --se-gold: #FFC857; --se-logo-gold: #FFC857; --se-v10-gold: #FFC857; --se-v19-gold: #FFC857; --identity-gold: #FFC857; --zero-gold: #FFC857;
  --navy: #084C61; --blue: #084C61; --navy-700: #084C61; --se-teal: #084C61; --se-logo-teal: #084C61; --se-v10-teal: #084C61; --se-teal-mid: #084C61; --se-ink: #084C61;
  --navy-900: #0B2F3B; --se-logo-teal-mid: #0B2F3B;
  --paper: #FFFFFF; --se-paper: #F6F8F9; --se-ivory: #F6F8F9; --se-bg-ivory: #F6F8F9; --se-a11y-ivory: #F6F8F9;
  --se-v10-paper: #FFFFFF; --se-v19-paper: #F6F8F9; --se-bg-paper: #FFFFFF; --se-a11y-paper: #FFFFFF; --se-v19-paper-bright: #FFFFFF;
  --zero-paper: #F6F8F9; --zero-paper-2: #EEF2F4; --zero-paper-3: #FFFFFF;
}

/* Clean, cool page ground instead of tan. */
html:not(#se-palette-lock) body { background-color: var(--se-brand-paper) !important; }

/* The logo's three colors as a signature rule under the header. */
html:not(#se-palette-lock) body .site-header { box-shadow: none; border-bottom: 0; position: relative; }
html:not(#se-palette-lock) body .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none;
  background: linear-gradient(90deg, var(--se-brand-teal) 0 33.3%, var(--se-brand-red) 33.3% 66.6%, var(--se-brand-gold) 66.6% 100%);
}

/* Red returns to the places buyers look: labels, prices and the buy step. */
html:not(#se-palette-lock) body :is(.eyebrow, .se-gateway-eyebrow, .se-lane-kicker, .funnel-kicker, .price-label) { color: var(--se-brand-red-text) !important; }
html:not(#se-palette-lock) body :is(.price, .price-amount, .purchase-review-price) { color: var(--se-brand-red-text) !important; }
html:not(#se-palette-lock) body :is(.btn-primary, .btn.btn-primary, button.btn-primary, [data-purchase-review] button[type="submit"]) {
  background: var(--se-brand-red) !important; border-color: var(--se-brand-red) !important; color: #FFFFFF !important;
  font-weight: 800;
}
html:not(#se-palette-lock) body :is(.btn-primary, [data-purchase-review] button[type="submit"]):is(:hover, :focus-visible) {
  background: var(--se-brand-red-deep) !important; border-color: var(--se-brand-red-deep) !important;
}
html:not(#se-palette-lock) body :is(.btn-secondary, .btn-outline) { border-color: var(--se-brand-teal) !important; color: var(--se-brand-teal) !important; }
html:not(#se-palette-lock) body main :is(section > h2, section > .wrap > h2, section > .wrap > div > h2:first-of-type, .section-heading > h2)::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: .45em; background: var(--se-brand-red); border-radius: 2px;
}
html:not(#se-palette-lock) body[data-se-page="ai"] main h2::after,
html:not(#se-palette-lock) body :is(main .center, main [style*="text-align:center"], main .section-heading, main .gateway-standard, main .product-hero) h2::after { margin-inline: auto; }
html:not(#se-palette-lock) body :is(main a:not(.btn):not([class*="card"]):not([class*="lane"])):is(:hover, :focus-visible) { color: var(--se-brand-red-text); }

/* Dark sections keep red readable. */
html:not(#se-palette-lock) body :is(.dark, [data-theme="dark"], .se-dark, footer) :is(.eyebrow, .price) { color: var(--se-brand-red-on-dark) !important; }

/* Visible keyboard focus everywhere, in brand teal. */
html:not(#se-palette-lock) body :focus-visible { outline: 3px solid var(--se-brand-teal) !important; outline-offset: 3px; }
