/* Wild Current contrast only. Geometry, URLs and behavior remain owned by their existing components. */
body.me-foundation .me-button {
  --me-cta-bg: #A44432;
  --me-cta-fg: #FBFAF7;
  --me-cta-border: #A44432;
  --me-cta-hover-bg: #102B32;
  --me-cta-hover-fg: #FBFAF7;
  --me-cta-hover-border: #102B32;
  background: var(--me-cta-bg) !important;
  color: var(--me-cta-fg) !important;
  border-color: var(--me-cta-border) !important;
}
body.me-foundation .me-button:visited,
body.me-foundation .me-button:focus {
  background: var(--me-cta-bg) !important;
  color: var(--me-cta-fg) !important;
  border-color: var(--me-cta-border) !important;
}
body.me-foundation .me-button:hover,
body.me-foundation .me-button:active {
  background: var(--me-cta-hover-bg) !important;
  color: var(--me-cta-hover-fg) !important;
  border-color: var(--me-cta-hover-border) !important;
}
body.me-foundation .me-button-secondary {
  --me-cta-bg: transparent;
  --me-cta-fg: #102B32;
  --me-cta-border: #718388;
  --me-cta-hover-bg: #F2EDE5;
  --me-cta-hover-fg: #102B32;
  --me-cta-hover-border: #718388;
}
body.me-foundation :is(.me51-button-ivory, .me53-inverse-button),
body.me-foundation :is(.me52-package #request, .me54-closing, .me55-closing) .me-button {
  --me-cta-bg: #FBFAF7;
  --me-cta-fg: #102B32;
  --me-cta-border: #FBFAF7;
  --me-cta-hover-bg: #F2EDE5;
  --me-cta-hover-fg: #102B32;
  --me-cta-hover-border: #F2EDE5;
}
body.me-foundation :is(.me-dark, .me51-signature, .me51-footer, .me53-signature, .me53-closing, .me54-closing, .me54-maasai-mara .me54-featured, .me55-closing, .me52-package #request) .me-button-secondary {
  --me-cta-bg: transparent;
  --me-cta-fg: #FBFAF7;
  --me-cta-border: #FBFAF7;
  --me-cta-hover-bg: #F2EDE5;
  --me-cta-hover-fg: #102B32;
  --me-cta-hover-border: #F2EDE5;
}
body.me-foundation :is(.me-dark, .me51-signature, .me51-footer, .me53-signature, .me53-closing, .me54-closing, .me54-maasai-mara .me54-featured, .me55-closing, .me52-package #request) .me-text-link {
  color: #FBFAF7 !important;
}
body.me-foundation .me-button:is(:disabled, [aria-disabled="true"]) {
  background: #F2EDE5 !important;
  color: #102B32 !important;
  border-color: #718388 !important;
  opacity: 1;
  cursor: not-allowed;
}
/* Existing normal/inverse focus outlines remain authoritative. */

/* Shared surface tokens: section labels inherit the surface's readable foreground. */
body.me-foundation :is(.me-card, .me-warm, .me51-coast-panel, .me52-decision-panel, .me52-chapter-opening) {
  --me-label-fg: #1F5963;
  --me-muted-fg: #102B32;
}
body.me-foundation :is(
  .me-dark,
  .me51-signature,
  .me51-footer,
  .me53-signature,
  .me53-closing,
  .me54-closing,
  .me54-maasai-mara .me54-featured,
  .me55-closing,
  .me52-package #request,
  .me52-chapter:nth-of-type(even) > .me52-chapter-opening
) {
  --me-label-fg: #FBFAF7;
  --me-muted-fg: #FBFAF7;
}
body.me-foundation :is(.me-eyebrow, .me-overline, .me-kicker) {
  color: var(--me-label-fg, var(--color-brand-secondary, #1F5963)) !important;
}
body.me-foundation .me-muted {
  color: var(--me-muted-fg, var(--color-muted)) !important;
}
@media (forced-colors: active) {
  body.me-foundation .me-button,
  body.me-foundation .me-button:is(:visited, :hover, :focus, :active, :disabled, [aria-disabled="true"]) {
    background: ButtonFace !important;
    color: ButtonText !important;
    border-color: ButtonText !important;
  }
  body.me-foundation :is(.me-eyebrow, .me-overline, .me-kicker, .me-muted) {
    color: CanvasText !important;
  }
}
