/* interactions module styles (Module 2) */

/* ------------------------------------------------------------------ *
 * Toast — one reused pill, above editor (9500), below cursor (99999)
 * ------------------------------------------------------------------ */
.oil-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 12000;
  max-width: min(92vw, 460px);
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--ink, #1a1a1a);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s var(--ease, ease);
}

.oil-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------ *
 * Focus-visible rings (only while keyboard focused)
 * ------------------------------------------------------------------ */
:where(
  .pcard a,
  .scard,
  .acard,
  .experience-card,
  .experience-arrow,
  .service-card,
  .social,
  .tab,
  .all-link,
  .articles-more,
  .product-alt-link,
  .hero .arrow[role="button"],
  .col > header > span[role="button"]
):focus-visible {
  outline: 3px solid var(--hl, #ffe28a);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(26, 26, 26, .12);
}

.ConsultingServices_dialog__gkzhY :where(button, a):focus-visible {
  outline: 3px solid var(--hl, #ffe28a);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(26, 26, 26, .10);
}

/* Click affordance for JS-upgraded scroll targets (no rest-state change) */
.hero .arrow[role="button"],
.col > header > span[role="button"] {
  cursor: pointer;
}

/* Small interaction polish for the dialog chrome */
.ConsultingServices_dialogHeader__gSW5G button:hover {
  background: var(--hl);
  border-color: var(--hl);
}

/* ------------------------------------------------------------------ *
 * Dialog safety: never overflow horizontally on narrow screens
 * ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .ConsultingServices_dialogBody__rHTGf {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ConsultingServices_dialogCopy__XZ618 {
    min-width: 0;
  }

  .ConsultingServices_dialogArt__9PElT {
    max-width: 100%;
    overflow: hidden;
  }

  .ConsultingServices_dialogFooter__6raAi {
    flex-wrap: wrap;
  }

  .ConsultingServices_dialogFooter__6raAi > * {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oil-toast {
    transform: translate(-50%, 0);
  }
}

/* Author display rules in demos.css outrank the UA [hidden] rule (unlayered
   author styles beat layered base styles), so make the attribute explicit. */
.ConsultingServices_dialogArt__9PElT[hidden],
.ConsultingServices_dialogFooter__6raAi[hidden] {
  display: none;
}
