/* ------------------------------------------------------------------
   /features/webhooks

   Loaded after feature-page.css, integrations.css (hero, jump pills,
   bands, dark card band), email-triage.css (screenshot frame, steps,
   problem tiles, use cards, CTA) and sms-whatsapp.css (the white
   artwork card). Only this page's artwork lives here, under `wh-`.
   ------------------------------------------------------------------ */

.wh-hero-inner {
  grid-template-columns: minmax(0, 1fr) 400px;
}

/* Band colours set per section: the steps and use-case sections sit between the bands, so
   integrations.css's nth-of-type alternation would put three white bands in a row. */
.ix-group.wh-beige {
  background: var(--bg);
}

.ix-group.wh-white {
  background: white;
}

.wh-feed-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.wh-type,
.wh-event-type {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft, rgba(162, 185, 100, 0.16));
  color: var(--accent-ink, #5d7230);
  white-space: nowrap;
}

/* ---------- Hero: one event fanning out to the practice's systems ---------- */

.wh-hero-art {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 10px 0 20px;
  color: var(--primary);
}

.wh-event {
  background: white;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.wh-event-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wh-event-head strong {
  display: block;
  font-size: 0.98rem;
}

.wh-event-head small {
  font-size: 0.8rem;
  color: #6b7b80;
}

.wh-event-icon,
.wh-target-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(162, 185, 100, 0.25);
  color: #5d7230;
}

.wh-event-type {
  display: inline-block;
}

.wh-signed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5d7230;
}

.wh-fan {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  color: var(--green);
}

.wh-targets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.wh-targets li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  font-weight: 600;
}

.wh-target-icon {
  width: 30px;
  height: 30px;
  background: rgba(181, 164, 203, 0.3);
  color: #6d5a8a;
}

.wh-target-name {
  flex: 1;
  min-width: 0;
}

.wh-ok {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(162, 185, 100, 0.25);
  color: #5d7230;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Event feed ---------- */

.wh-feed,
.wh-roles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wh-feed li,
.wh-roles li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--primary);
  font-size: 0.9rem;
}

.wh-feed li + li,
.wh-roles li + li {
  border-top: 1px solid rgba(34, 54, 60, 0.07);
}

.wh-feed .wh-type {
  flex: none;
  min-width: 9.5em;
  text-align: center;
}

/* ---------- Signed message ---------- */

.wh-card-label-icon {
  vertical-align: -2px;
}

.wh-headers {
  list-style: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #11262c;
  display: grid;
  gap: 6px;
}

.wh-headers li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.wh-headers code {
  color: #cfe0a0;
  font-size: 0.78rem;
}

.wh-headers .sw-muted {
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-verified,
.wh-secret {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--primary);
  font-size: 0.88rem;
}

.wh-verified {
  font-weight: 700;
  color: #5d7230;
  margin-bottom: 12px;
}

.wh-secret {
  padding-top: 12px;
  border-top: 1px solid rgba(34, 54, 60, 0.08);
  flex-wrap: wrap;
}

.wh-secret-dots {
  color: #6b7b80;
  letter-spacing: 0.05em;
}

.wh-pill {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 54, 60, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Retries ---------- */

.wh-attempts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0 0 0 14px;
  border-left: 2px dashed rgba(34, 54, 60, 0.15);
  display: grid;
  gap: 10px;
}

.wh-attempts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.wh-attempts svg {
  flex: none;
  padding: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.wh-attempt-fail svg {
  background: rgba(214, 87, 69, 0.15);
  color: #b0412f;
}

.wh-attempt-wait svg {
  background: rgba(245, 204, 75, 0.3);
  color: #8a6a07;
}

.wh-attempt-ok svg {
  background: rgba(162, 185, 100, 0.25);
  color: #5d7230;
}

/* Accent stripe on the left, so that side stays square. */
.wh-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  background: rgba(181, 164, 203, 0.18);
  color: var(--primary);
  font-size: 0.88rem;
}

.wh-alert > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wh-alert-icon {
  flex: none;
  color: #6d5a8a;
  margin-top: 1px;
}

/* ---------- Roles ---------- */

.wh-role-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 54, 60, 0.08);
  color: #6b7b80;
}

.wh-role-yes {
  background: rgba(162, 185, 100, 0.25);
  color: #5d7230;
}

.wh-pro {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .wh-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .wh-feed .wh-type {
    min-width: 0;
  }

  .wh-feed li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
