/* P0000 site-wide inline context triggers + compact adjacent Foyer flyout
   Triggers read as ordinary sentence text; only a brand dotted underline marks them. */

button.foyer-inline-context-trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--teal, #00dcb9);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: baseline;
}

button.foyer-inline-context-trigger:hover {
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #5cf0d4;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 0.28em;
}

button.foyer-inline-context-trigger:focus {
  outline: none;
}

/* Accessible focus without a boxed rectangle: thicken/brighten the dotted underline only. */
button.foyer-inline-context-trigger:focus-visible {
  outline: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #9bffe9;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

button.foyer-inline-context-trigger[aria-expanded="true"] {
  color: inherit;
  background: transparent;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #5cf0d4;
  text-decoration-thickness: 2.5px;
}

.blog-single-content button.foyer-inline-context-trigger,
.case-section-body button.foyer-inline-context-trigger,
.section-sub button.foyer-inline-context-trigger,
.feat-desc button.foyer-inline-context-trigger,
.feat-title button.foyer-inline-context-trigger {
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--teal, #00dcb9);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.foyer-inline-flyout {
  position: fixed;
  z-index: 10020;
  left: 0;
  top: 0;
  width: min(340px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

.foyer-inline-flyout[hidden] {
  display: none !important;
}

.foyer-inline-flyout__card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 220, 185, 0.28);
  background: linear-gradient(165deg, rgba(10, 18, 32, 0.98), rgba(8, 14, 20, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  color: var(--white, #f0f4ff);
}

.foyer-inline-flyout.is-animated .foyer-inline-flyout__card {
  animation: foyerInlineFlyoutIn 160ms ease-out;
}

@keyframes foyerInlineFlyoutIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foyer-inline-flyout__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.foyer-inline-flyout__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.foyer-inline-flyout__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 35% 30%, #7dffeb 0%, #00dcb9 42%, #089987 100%);
  box-shadow: 0 0 0 2px rgba(0, 220, 185, 0.2);
  position: relative;
}

.foyer-inline-flyout__avatar::before,
.foyer-inline-flyout__avatar::after {
  content: "";
  position: absolute;
  background: #07131c;
  border-radius: 50%;
}

.foyer-inline-flyout__avatar::before {
  width: 5px;
  height: 5px;
  left: 11px;
  top: 13px;
  box-shadow: 9px 0 0 #07131c;
}

.foyer-inline-flyout__avatar::after {
  width: 12px;
  height: 6px;
  left: 12px;
  top: 21px;
  border-radius: 0 0 12px 12px;
  background: transparent;
  border: 2px solid #07131c;
  border-top: 0;
}

.foyer-inline-flyout__who {
  min-width: 0;
}

.foyer-inline-flyout__name {
  margin: 0;
  font-family: var(--font-head, "Space Grotesk", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--white, #f0f4ff);
}

.foyer-inline-flyout__role {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted, #6b7fa8);
}

.foyer-inline-flyout__close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #6b7fa8);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.foyer-inline-flyout__close:hover {
  color: var(--white, #f0f4ff);
  background: rgba(255, 255, 255, 0.06);
}

.foyer-inline-flyout__close:focus-visible {
  outline: 2px solid var(--teal, #00dcb9);
  outline-offset: 2px;
}

.foyer-inline-flyout__answer {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(240, 244, 255, 0.92);
}

.foyer-inline-flyout__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.foyer-inline-flyout__chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 220, 185, 0.35);
  background: rgba(0, 220, 185, 0.08);
  color: var(--teal, #00dcb9);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.foyer-inline-flyout__chip:hover:not(:disabled) {
  border-color: rgba(0, 220, 185, 0.55);
  color: var(--white, #f0f4ff);
}

.foyer-inline-flyout__chip:focus-visible {
  outline: 2px solid var(--teal, #00dcb9);
  outline-offset: 2px;
}

.foyer-inline-flyout__chip:disabled,
.foyer-inline-flyout__chip[aria-pressed="true"] {
  opacity: 0.55;
  cursor: default;
}

.foyer-inline-flyout__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 220, 185, 0.4);
  background: linear-gradient(160deg, rgba(0, 220, 185, 0.18), rgba(0, 220, 185, 0.08));
  color: var(--white, #f0f4ff);
  font-family: var(--font-head, "Space Grotesk", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.foyer-inline-flyout__continue:hover {
  border-color: rgba(0, 220, 185, 0.65);
}

.foyer-inline-flyout__continue:focus-visible {
  outline: 2px solid var(--teal, #00dcb9);
  outline-offset: 2px;
}

@media (max-width: 390px) {
  .foyer-inline-flyout {
    width: calc(100vw - 20px);
  }

  button.foyer-inline-context-trigger {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foyer-inline-flyout.is-animated .foyer-inline-flyout__card,
  button.foyer-inline-context-trigger {
    animation: none;
    transition: none;
  }
}
